Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi,

    Yes, they should be compatible, though you might have to clear both caches when necessary.

    We use both on some of our sites.

    Marc.

    Salut Marc;
    If you guys want you can hook into autoptimize_action_cachepurged to purge WP-O’s page cache and if you have an action when WP-O’s cache is cleared, I’d be happy to hook into that with AO to purge AO’s ??

    Bien à toi,
    frank

    Salut Frank ??

    Thanks for providing the hook. Does AO also have a hook for per-post cache?

    Marc.

    no, AO doesn’t work on a per-post level, it aggregates CSS/ JS and checks if a cached version exists and one cached file can (and ideally is) re-used on multiple posts/ pages.

    @optimizingmatters Okay, thanks. You can use the action wpo_cache_flush, though it might not be necessary to clear AO’s cache when clearing the page cache, as the assets might not have changed.

    You can use the action wpo_cache_flush,

    great, thanks! that action is only triggered when the cache is entirely flushed, right? or also when just one page/ post was removed from cache?

    though it might not be necessary to clear AO’s cache when clearing the page cache, as the assets might not have changed.

    that’s true, but on the other hand as AO does not have it’s own automatic cache flushing (for many reasons I won’t bother you with) I need to take the opportunity to flush when safe to do so ??

    that action is only triggered when the cache is entirely flushed

    Yes.

    I need to take the opportunity to flush when safe to do so ??

    Sure ?? Thanks!

    OK, action hook added to the codebase and will be in AO 2.6 (probably out in December). Un grand merci Marc!

    Great! autoptimize_action_cachepurged should be in the next release of WP-Optimize. Merci ??

    Thread Starter Julian Stark

    (@jstark55)

    ????

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Does Cache work together with Autoptimize?’ is closed to new replies.