Forums › Forums › Search & Filter Pro › Cache is empty sporadically
Tagged: cache, empty cache, rebuild
- This topic has 24 replies, 2 voices, and was last updated 6 years, 7 months ago by Anonymous.
-
Trevor(Private) May 15, 2018 at 4:51 pm #177694
Ah. I see that you use WP Engine, which gives me an idea.
There is a setting to override a feature of WP Engine hosting, that truncates long SQL queries (which ours are). Edit the site wp-config.php file and add this at the top, after line 1 (on a new line 2):
define('WPE_GOVERNOR', false);
(also see here for another related support note about this – https://support.searchandfilter.com/forums/topic/killed-query-errors-in-log/#post-64826)
I would just say though, that rather than adding this in blindly, to research and make sure this setting doesn’t adversely affect anything in your site.
Anonymous(Private) May 16, 2018 at 4:27 pm #177949Yes actually, there is a cron running which makes sure the other form is filled. Looks like it’s clearing out the search and filter cache.
if(is_plugin_active("search-filter-pro/search-filter-pro.php")){ $wpdb->query("DELETE FROM <code>lgn_search_filter_cache</code>"); $wpdb->query("DELETE FROM <code>lgn_search_filter_term_results</code>"); }
Is this deleting the entire cache?
If so is there a way to delete the cache of a specific form instead?
-
AuthorPosts