Clearing cache in a multiserver setup
-
We have a multiserver wordpress setup, where all the servers are mirrors of each other, let’s call them A, B, and C. The public access the servers through a load balancer.
All administrative tasks, such as posting new articles, etc will be done by server A.
We noticed that whenever we make modifications to existing content, while the changes show up on server A, the other two servers, B and C, will continue to serve a cached version of the page.
If we add in some a query at the end of the page to force a new page to appear (for example, http://www.website.com?query), the correct and updated state of the website will appear.
We are actually not too sure what exactly is caching the site. We have attempt to purge the cache on w3tc a couple of times but no luck: is it because the “clear all cache” button will only clear the cache on server A (the one we are connected to), and not B and C? In which case, how do we go about clearing the cache to server B and C.
- The topic ‘Clearing cache in a multiserver setup’ is closed to new replies.