• Resolved rrivv

    (@rrivv)


    Hi

    Is there a way to skip deleting last 3-5 versions of Autoptimize cache during auto clearing?

    Or if not, just disable auto-clearing?
    Is “ao_cachechecker” cron process doing this, is it safe to stop this process?

    We face an issue with Autoptimize+w3tc Page cache, when Au cache auto-cleared, but previous css/js Au cache file link remains in w3tc cached file, so site looks broken.

    Thank you, Andy

    • This topic was modified 2 years, 6 months ago by rrivv.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    hmm, Autoptimize does not clear it’s own cache, so it’s likely some other plugin (or your theme) is calling AO’s clearall function?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Were you able to identify what is clearing the AO cache Andy?

    Thread Starter rrivv

    (@rrivv)

    Well, partly ??
    At least when I clear “all caches” manually with w3tc / “purge all caches” function, w3tc clears Au cache too.

    So I believe in our case it is not an Autoptimize issue, but w3tc’s or w3tc+cron issue – sometimes w3tc delete’s autoptimize cache (by its own and in backend), but don’t update w3tc cached pages, that is why these cached pages contain old (outdated) Au files (autoptimize_xxx.css/autoptimize_xxx.js).

    • This reply was modified 2 years, 5 months ago by rrivv.
    • This reply was modified 2 years, 5 months ago by rrivv.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    OK, below code snippet (which stops AO from “listening” to “clear all cache” hooks, amongst others w3tc’s) might help to stop AO’s cache from being cleared;

    
    add_filter( 'autoptimize_filter_main_hookpagecachepurge', false );
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    any news rrivv ?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    No feedback so I assume this got resolved? Feel free to follow up if you still encounter issues!

    have a nice day!
    frank

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Autoptimize auto cache clear disable’ is closed to new replies.