Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #55909
    Adam Luzsi
    Guest

    Dear Customer Service,

    We’ve been using your W3TC plugin on the staging site for an online magazine website with 110,000+ articles, and we are at just about to go live, but I noticed an issue regarding the page cache.

    Please check out this screenshot: https://www.dropbox.com/s/70fm6j6xao84ady/2022-08-09_18-25-31.jpg?dl=0

    This is a screenshot of a single article page, but the same goes for 99.9% percent of the pages (like category pages…etc), that part of the content is static, but in the sidebar, there is dynamic content.

    How is it possible to not cache those sections? Or as an alternative, to set up a flag that whenever a new article is published, the page caches get updated on first visit, so it’s only slow for the first visitor and this way we also don’t have to purge the entire page caches for all 110,000+ pages as that would be an overkill.

    Please advise.

    Thank you,

    Adam

    #55914
    Marko Vasiljevic
    Keymaster

    Hello,

    Thank you for reaching out and I am happy to assist you with this.
    For this, you can use Page Fragment Cache as a method in W3 Total Cache to exclude specific parts of the page from being cached.
    With this method, you can wrap the PHP code with (replacing the PHP tag). This will ensure that this part of the page will be excluded from Page cache.
    Please note that this is only available when using Page Caching Method Disk, or Memory-based caching methods like Memcached or Redis.
    You can check more about this on our FAQ page
    The best method is to fire these parts with Ajax, which will automatically bypass the cache.
    Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Page Cache (enhanced) for partially dynamic content pages’ is closed to new replies.