Posts by mattmatt88

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

Hello,

I have a meta key called $availability, that can have one of four options, but also multiple values separated by ”|”.

So, for example the value could be “severaltimes_week| severaltimes_week| occasionally”.

I haven’t found the right comparison for that issue. Can you help? ’=’, ’!=’, ’>’, ’>=’, ’<’, ’<=’, ‘LIKE’, ‘NOT LIKE’, ‘IN’, ‘NOT IN’, ‘BETWEEN’, ‘NOT BETWEEN’, ‘EXISTS’, ‘NOT EXISTS’, ‘REGEXP’, ‘NOT REGEXP’,’RLIKE’

if ( $_GET['ava1'] == "on" ) { $availability .= "severaltimes_week| "; } if ( $_GET['ava2'] == "on" ) { $availability .= "oncetwice_week| "; } if ( $_GET['ava3'] == "on" ) { $availability .= "severaltimes_week| "; } if ( $_GET['ava4'] == "on" ) { $availability .= "occasionally"; } $meta_args[] = array( 'key' => 'availability', 'value' => $availability, 'compare' => 'IN' );
82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

Ok but if I do a database query that doesn’t need user information, it will be as fast as if I have a smaller amount of users?

I’m still nit sure what would be the better solution.

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

Hello,

I have a multisite website with ~25,000 users. I’m now creating a new website that may also have a lot of users in the future. I’m using the same parent theme for all websites.

The new website won’t be related to the old website but I like the idea of updating the plugins only once and maybe I would like to do special offers for people who are registered to one of the other websites or I want to install a collective point system for users of all websites in the future. That’s why I think of having them all in one multisite from the beginning.

Do you think it’s a good idea to include the new website in the multisite network in respect of database loading time / performance? Is there a much higher loading time if there are 125,000 instead of 25,000 users, e.g.?

Thank you.

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

Oh thank you. Have overlooked that.

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

hmm ok. thanks for writing. Do you have any tipps how to get it to work with wp super cache?

thank you

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

Any ideas?

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

Any ideas if this is possible?

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

But the header information is on EVERY page. So, I just want the php code above to not be cached. The rest of the page should be cached. Is that possible?

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

Hello,

Usually in WP, it is possible to have duplicate display and nicknames (but not usernames).

I need a possibility to don’t allow users to change their nicknames and display names, if the name already exists.

Hope you can help.

Thank you.

82 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
mattmatt88
says

Hello,

I use WP super cache, but I need some parts of the website (especially in the header) to be created dynamically and shouldn’t be cached.

e.g. a shortcode of a plugin that displays the “points” of a user: <?php echo do_shortcode(‘[mycred_my_balance login=”” title=”” title_el=”” balance_el=”” wrapper=”0” type=”mycred_default”]’); ?>

How is that possible?

Thank you.

by
by
by
by
by
by