The forums are closed and will be removed when we launch our new site.
Looking for support? You can access the support system via your account.
webteam webteam
Forum Replies Created
-
webteam webteam in reply to:
Autocount does not seem to work (multisite installation with 2 sites)(Private) April 28, 2020 at 1:28 pm #241769This reply has been marked as private.webteam webteam in reply to:
Autocount does not seem to work (multisite installation with 2 sites)(Private) April 28, 2020 at 12:19 pm #241751This reply has been marked as private.webteam webteam in reply to:
Autocount does not seem to work (multisite installation with 2 sites)(Private) April 28, 2020 at 12:00 pm #241744This reply has been marked as private.webteam webteam in reply to:
Autocount does not seem to work (multisite installation with 2 sites)(Private) April 23, 2020 at 5:42 pm #241172This reply has been marked as private.webteam webteam in reply to:
Autocount does not seem to work (multisite installation with 2 sites)(Private) April 23, 2020 at 5:10 pm #241159This reply has been marked as private.webteam webteam in reply to:
Autocount does not seem to work (multisite installation with 2 sites)(Private) April 23, 2020 at 3:59 pm #241143Hi Ross,
We’ve found the issue.
The culprit seems to be the way you are handling database table names in includes/class-search-filter-post-cache.php in the constructor. When using switch_to_blog() the wrong prefix is set (previous site) and the cache of the site we’ve switched to is not used. Instead of the prefix of the site we were in before the switch_to_blog() is used. This can have bad side-effects in WordPress Multisite installations, as we’ve experienced.
The solution is to use $wpdb->prefix and the table name at the last moment e.g. in or just before doing the query instead of setting the table name including the prefix in the constructor. This allows switch_to_blog() to set the correct prefix.
We are working around this issue by setting the correct prefix explicitly in the global search_filter_post_cache instance, but it would better for all your plugin’s clients if this can be fixed in Search & Filter Pro.
In case you need help with this, or if anything I wrote is unclear let me know. I’m happy to help you getting this fixed for everyone.
All the best,
Björn Wijerswebteam webteam in reply to:
Autocount does not seem to work (multisite installation with 2 sites)(Private) April 20, 2020 at 9:37 am #240553Hi Ross,
Sure, we’ve built a plugin which based on a cronjob (wordpress or system) creates a post for a Dutch language site and an English site. This post is inserted in each site using wp_insert_post(). We use switch_to_blog() to select the required site. It seems the S&F Pro Cache does not invalidate after a wp_insert_post()? Can you tell me how S&F decides when to rebuild the cache automagically?
I’m testing this on my local development environment without caching plugins.
Look forward to your response,
webteam webteam in reply to:
Multilingual Search criteria form(Private) January 16, 2020 at 12:29 pm #231373Thanks for your quick answer.
I’ll look into the direction you suggested.webteam webteam in reply to:
url for license activation(Private) October 19, 2018 at 3:37 pm #191353This reply has been marked as private.webteam webteam in reply to:
url for license activation(Private) October 15, 2018 at 3:29 pm #190990This reply has been marked as private. -
AuthorPosts