Tagged: Purge Cache
- AuthorPosts
Jon Woolf
GuestOur WordPress/WooCommerce website is having a highly specific caching problem: when changes are made to certain pages, including the home page, the changes show up quickly on desktop and laptop computers, but not on mobile devices such as phones. In some cases the changes have still not been showing for mobile devices even a couple of days later. Purging the server-level cache always fixes this. Our hosting service (Cloudways) tech support says that perhaps it’s a conflict between W3 Total Cache and the server-level cache, which is Varnish. At this time, the Basic settings for W3 Total Cache show that page caching is turned off in the Basic settings, with a mix of enabled and disabled features in the Advanced Settings page.
Is the host’s explanation correct? Is the problem being caused at the server, at the website cache, or somewhere in between?
Thanks,
— Jon Woolf
Web Developer,
White Birch Armory
Dover, NH
jwoolf@wbarmory.comMarko Vasiljevic
KeymasterHello Jon
Thank you for reaching out, and I am happy to help!
The host’s explanation is not correct. It’s all about the invalidation of the cache. If the Page Cache in the W3 Total Cache is disabled, it means taht the page is not cached by the W3TC at all.
This being said, it seems that once the page is updated, the cache is not invalidated on the server, and therefore, not serving the updated page. Therefore, you need to invalidate the cache on yoru server manually.
What you can do is to enable reverse proxy caching via Varnish, in W3 Total Cache Performance>General settings page under Reverse proxy section
There, you can specify the IP addresses of your Varnish instances above. The VCL’s ACL must allow this request.
Let me know if this helps!
Thanks!- AuthorPosts