• Resolved willjames

    (@willjames)


    Hi
    I have the following set up:
    AO
    Critical CSS
    Rapidload

    Plus

    Asset Clean up to reduce the files before the above kick in…

    The problem is that running all of these to build the various caches is resource heavy (thousands of pages) so, unless I make a change to the css or something major in a template, I don’t really want to keep rebuilding these files.

    However it seems that when I update a taxonomy term description (adding SEO content) ACU decides that a cache clearout is necessary which then trips the AO and I am back to square one with all the caches.

    I have put a request in to ASU and I am awaiting the response. Problem is that there are 4 services involved here, but since 3 of them work with your plugin I thought I should run it by you too.

    I have tried to put something I found that you posted before in my theme’s child functions.php file, but it did not seem to prevent AO clearing out all caches:
    add_filter(‘autoptimize_filter_main_hookpagecachepurge’,’__return_false’);
    https://github.com/futtta/autoptimize/issues/195

    Log for ACU

    2021-05-12 08:05:48	Access	92.238.151.249	200	POST /wp-admin/admin-ajax.php?wpacu_clear_cache HTTP/2.0	https://www.co.uk/wp-admin/term.php?taxonomy=make-body&tag_ID=13076&post_type=listings&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dmake-body%26post_type%3Dlistings%26orderby%3Dcount%26order%3Ddesc%26s	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36	1	nginx SSL/TLS access
    
    Ten seconds later:
    2021-05-12 08:05:58	Access	92.238.151.249	200	GET /wp-admin/admin-ajax.php?action=autoptimize_delete_cache&nonce=6f0b6ba1d5&_=1620806740633 HTTP/2.0	https://www..co.uk/wp-admin/term.php?taxonomy=make-body&tag_ID=13076&post_type=listings&wp_http_referer=%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dmake-body%26post_type%3Dlistings%26orderby%3Dcount%26order%3Ddesc%26s	Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36	8	nginx SSL/TLS access

    Any thoughts?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    What cache(s) does ACU (try to) clear out?

    Thread Starter willjames

    (@willjames)

    I am not sure really what it is trying to do as I don’t use the minification etc that would generate caches – just for the unloading of the assets prior to AO minifying etc…

    It seems that it isn’t clearing out the caches but AO is as a result of ACU kicking off.
    AO deletes
    AO
    Rapidload
    Super Cache

    not Critical css files

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO does not “listen” to ACU actions or taxonomy changes, so something else is happening there I’m afraid. Is this also happening when you don’t have ACU active?

    Thread Starter willjames

    (@willjames)

    It does not happen with ACU turned off.

    This was from you on the post I mentioned above:

    you’re having an issue with something triggering very frequent page cache purges (which AO now listens for to clear it’s own cache). Are you using a page caching plugin and if so which one?

    If this is the problem, you can stop AO from listening for cache purges with this code snippet;
    add_filter(‘autoptimize_filter_main_hookpagecachepurge’,’__return_false’);

    I understand AO ignores taxonomy changes, but ACU seems not to.

    AO does seem to kick in to clear caches when ACU tries to clear its cache…?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    AO does seem to kick in to clear caches when ACU tries to clear its cache…?

    AO itself does not, but obviously if ACU kicks AO …

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Closing this thread as root cause seems to be ACU triggering AO to clear the cache (using the API likely, so “hookpagecachepurge” does not apply).

    frank

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Still on caching issues..’ is closed to new replies.