By Lex Gabrees
Hi,
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) ?
Thanks, Lex
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Addition to the post above :
My logic tells me, that just using a Wordpress caching plugin and purging the cache / rebuilding the cache (there is usually a button for that in the plugin screen) will solve the problem. That way wordpress can generate static files from dynamic pages and NGINX can serve those static files … Any opinions on this solution ?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.