• Resolved Glisse1

    (@glisse1)


    Hello, since some updates i have observed that when i modify a page (eg, change text, or change stock for a woocomerce product) the cache is not working anymore for that particular page and also the homepage. I tried to manually purge cache several times for both. The difference in loading time is significant, compared to the rest of the site which still works blazing fast thanks to the caching. The only solution is to purge cache for all pages and then preload. And this is resource consuming to do everytime i change just 1 letter somewhere. Any ideas?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Glisse1

    (@glisse1)

    To be more clear:
    – say i have 100 pages on site, all of them with a TTFB of some 2-300 ms due to cache;
    – on page A i change a letter and update it. From that moment on page A and homepage have TTFB of some 2-3-4 seconds while the rest of 98 pages still 2-300 ms;
    – manualy purging cache just for page A and hompage makes no difference;
    – I purge cache for all pages and preloading, now all 100 pages have ttfb of 300 ms again.

    @glisse1

    You’ll have to use the filter outside the hook function call.

    add_filter( 'wpo_purge_all_cache_on_update', '__return_true' );

    So it will purge all the cache whenever you update the post/page or create a new post/page.

    If you have any more questions, please feel free to write back to us.

    Have a nice day!

    Thread Starter Glisse1

    (@glisse1)

    but this is highly unefficient..what if you have 5000 or 10.000 or w/e pages on site and not just 100 like me, and you want to update just 1 of them. It s resources intensive and consuming. Actually i realised that this is a bug. Because when i click “purge cache for this page” in the top bar, the cache size and number of cached files remains the same (in my case it says 288 files, before and after purging cache for that one page). It should have gone down at least 1, right?

    Also, this behaviour was NOT before. Manually purging cache for just 1 page used to work for sure. For now, yeah, i purge all cache, but as i imagine ppl with much larger sites have a bigger problem than me.

    Thread Starter Glisse1

    (@glisse1)

    Update: i have figured out whats happening. Actually, updating a page it does clear cache for that page as it should. What s different from before is that visiting that page as logged in wordpress admin (i suppose) it does not re-create the cache. Opening incognito window created the cache and it works just fine, tested several times on several pages. So this is fine, if you update a page, when a true visitor hits it cache is re-refreshed. No need to clear all cache for w/e thousands pages one have.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Updating page disables cache for that page and homepage’ is closed to new replies.