Cache is empty sporadically

Forums › Forums › Search & Filter Pro › Cache is empty sporadically

Viewing 10 posts – 11 through 20 (of 25 total)
  • Trevor
    #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
    #177696

    Thanks Trevor, I’ll surely look into this. Thanks for the tip!

    Anonymous
    #177882

    Hi Trevor, unfortunately, like clockwork, empty again this morning. I did add in the “define(‘WPE_GOVERNOR’, false);” to my wp-config and confirmed nothing else was adversely effected on the site, but the issue persists. Running out of ideas.

    Trevor
    #177886
    This reply has been marked as private.
    Anonymous
    #177893
    This reply has been marked as private.
    Anonymous
    #177895
    This reply has been marked as private.
    Trevor
    #177897
    This reply has been marked as private.
    Anonymous
    #177899
    This reply has been marked as private.
    Trevor
    #177943
    This reply has been marked as private.
    Anonymous
    #177949

    Yes 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?

Viewing 10 posts – 11 through 20 (of 25 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.