• Resolved tofcha

    (@tofcha)


    Hi everyone,

    I installed wp-optimize, and enabled caching, but it seems it’s not working.

    I don’t have another cache plugin.

    In wp-config.php i settled wp-debug to true.

    I clear the browser cache, go on the website, actualize, and display the code source.

    I have this as debug information :

    WP Optimize page cache – https://getwpo.com – Page not served from cache because: In the settings, caching is disabled for matches for one of the current request’s GET parameters

    And I can’t find out what to do with this !!!

    And I enabled minify also, and on the same page I have this message :

    ERROR: WP-Optimize Minify was not allowed to save its cache on – wp-content/cache/wpo-minify/1740562330/assets/wpo-minify-header-konte-child1684501394.min.css –>
    <!– Please check if the path above is correct and ensure your server has write permission there!

    The path looks correct and permissions set at 755

    Probably 2 differents problems.

    I will appreciate some help !

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Damilare

    (@deabiodun)

    Hi!
    That must have been quite frustrating seeing your pages not getting cached despite having cache enabled.

    On checking, I see that your page URLs keeps getting a query parameter/variable automatically attached (https://sensihemp.pt/?v=fc9fdf084e29 instead of https://sensihemp.pt). WP-Optimize does not cache pages with query parameters by default. In your case, the query variable is “v”.

    To make your pages get cached, you may need to disable the code or plugin that is adding the query strings.

    If having that variable is absolutely required, you can include them for caching by applying the filter code below

    function custom_wpo_cache_ignore_query_variables($exclude) {
    $new_variables = array('your_query_var1', 'your_query_var2');
    $exclude = array_merge($exclude, $new_variables);
    return $exclude;
    }
    add_filter('wpo_cache_ignore_query_variables', 'custom_wpo_cache_ignore_query_variables');

    That code can be added into your themes functions.php file. Preferably, you can use a code snippet plugin to apply the filter.

    Make sure to change “your_query_var*” to the query variable you want to exclude (“v” in your case).

    For the minify issue, please reach out to your hosting provider and inform them to help reset the permissions for your WP installation.

    Regards.

Viewing 1 replies (of 1 total)

The topic ‘Cache issue’ is closed to new replies.