Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Updating Wordpress content and NGINX caching ..
This might be a ‘simple’ question, but can’t seem to find the right answer to it. I understand that NGINX (FastCGI caching) can cache certain pages, including for example Wordpress pages. This is done to be able to serve them quickly (as static).
I also know that there are certain directives for the caching, such as expiration, inactivity, etc.
My question however is this : let’s say that the cache is deleted after 1 day inactivity (no requests), but I update a Wordpress blog post in somewhere during that day. Now I have updated the content. But what about the cached content ? Is that cached content immediately replaced (and thus recached) by the updated content ? Or will the website visitors potentially have to wait untill the new content is rechaged (based on certain directives probably) ?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×