Tagged: Page Cache
- AuthorPosts
- January 6, 2023 at 12:10 pm #75129Stephen CicirelliGuest
I have just updated my website to include my Twitter feed. This feed constantly changes, as I tweet. I have noticed, in the morning, that the feed is disappearing altogether. It is only when I “purge all caches” that the Twitter feed returns. Is there a way to automatically schedule a daily purge so that I don’t have to do so manually every morning? I would appreciate any help with this. Thanks,
Stephen
January 6, 2023 at 12:33 pm #75152Marko VasiljevicKeymasterHello Stephen,
Thank you for reaching out and I am happy to assist you with this.
Purging the W3 Total Cache – cache all the time is not recommended as it may cause a lot of server resource consumption, naturally, it depends on the website.
There are a couple of things that you can do.
1. Exclude the page where the feed is (in your case/news/
) from the page caching by adding/news/
in Peformance>Page Cache>Advanced>Never Cache following pages field.
2. Use Page Fragment Caching – You can check more details in our FAQ about this, but in short, you need to warp this part of the page with themfunc
, replacing thetags and excluding this part of the page from the cache.
3. Setup a custom cron on your server and callw3tc_flush_url($url);
every x minutes/hours.The last one is a programmatic solution that will only purge specific URL instead of pouring the cache for the entire website.
I hope this helps!
- AuthorPosts
- The topic ‘How To Schedule Automatic Cache Purges With W3 Total Cache’ is closed to new replies.