Tagged: Page Cache, Page Fragment Caching
- AuthorPosts
- August 9, 2022 at 12:53 pm #55909Adam LuzsiGuest
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
August 9, 2022 at 1:01 pm #55914Marko VasiljevicKeymasterHello,
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!- This reply was modified 2 years, 4 months ago by Marko Vasiljevic.
- AuthorPosts
- The topic ‘Page Cache (enhanced) for partially dynamic content pages’ is closed to new replies.