Hi All
Just wondering if anyone had knowledge on how to correctly setup NGINX so that it caches responses?
What I've tried.
- I've created myself a Cache Path and verified via SSH that it was created and is owned by the WWW user.
- Set my Location to use the Cache Path I just created, leaving Cache: Minimum Uses to the default of 1.
- Generate web traffic to the specified site to trigger cache generation
Looking at the cache directory and it is empty. I'm trying to cache a Wordpress site if that is of any relevance. Really appreciate any tips here as caching will be great to have in place for performance as well as keeping content up for short periods while any backend service maintainance is going on.
Since Wordpress serves dynamic content based on php+sql, every user agent will get a personally rendered html of that website.
You cannot really cache dynamic content properly in a reverse proxy since it is individual per request, only static content could be cached properly and served even if backend servers are offline.
If you want a cache in front of a CMS you really should consider varnish-cache.org.