My WordPress site always displays a cached version of its homepage

Sounds like your expires headers are set to far in the future. The following rules can be added to your .htaccess Expires rules can be added to your Nginx server file to shorten the expires time down to 180 seconds.

location ~* \/[^\/]+\/(feed|\.xml|.html|.HTML)\/? {

               expires 180;
}

I would also suggest installing the Nginx Proxy Cache Integrator plugin to control the Nginx static file proxy cache.

Another plugin that is similar is Nginx Proxy Cache Purge that purges the proxy cache anytime you update your site.

The problem your having is NOT being caused by WordPress.

Leave a Comment