Support » Plugin: Autoptimize » Updating page causes AO cache to clear

  • Resolved lozula

    (@lozula)


    Hey Frank,

    I started a thread with the Cache Enabler folks, because I noticed that updating a page on my site was causing their cache to flush.

    https://wordpress.org/support/topic/whole-cache-purged-when-updating-page/

    They can’t recreate this, but it turns out that it might be because updating a page is causing my AO cache to clear, which would in turn trigger the Cache enabler purge.

    Do you have any idea why this might happen, and how I can stop it happening?

    Thanks!

    Laurence

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

    (@optimizingmatters)

    Hey Laurence;
    AO doesn’t ever clear it’s own cache, but some themes (looking somewhat angrily at Divi here) and possibly plugins force AO’s cache to be cleared, so guess that’s what happening?

    hope this helps,
    frank

    Hey Frank,

    Thanks very much. I use very few plugins to try and keep the site pretty tight, and use a Genesis based theme.

    I’m hosted on Flywheel, who have their own Varnish based caching solution.

    Do you have any tips for how I might go about figuring out where to look to see what’s triggering the cache clear? It’s kind of frustrating that the AO cache clears whenever I update a page, and weird that it doesn’t do it when I update a post!

    Thanks

    Laurence

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    Only thing I can come up with is try searching plugin/ theme code for autoptimizeCache::clearall() ?

    Ok, I searched my whole site, from the root directory up, for autoptimizeCache::clearall(), and even just autoptimizeCache.

    The only reference to it is in the AO plugin directory.

    Then I deactivated Cache Enabler. With Cache Enabler deactivated, the cache does not clear when I update the page. When I reactivate Cache Enabler, the AO cache clears when I update the page. The Cache Enabler cache also clears, even when I have it set not to. So I guess the fact that Cacne Enabler is clearing it’s cache is triggering AO to do the same.

    Unfortunately the Cache Enabler folks can’t replicate this behaviour. I might have to find another caching plugin.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    could be a combination of Flywheel + KeyCDN CE + AO that is misbehaving here .. hard to tell.

    I switched caching plugins and the AO cache no longer clears unexpectedly. So that’s good enough for me 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.