nginx simple caching solutions

António P. P. Almeida appa at
Wed Aug 1 15:27:24 UTC 2012

On 1 Ago 2012 17h18 CEST, ianevans at wrote:

> I set up the cache and restarted nginx. How do I debug it? I ab
> tested the front page and it's still slow with concurrent
> requests. There seems to be a few snippets in the cache dir, but not
> every php file is getting cached.

Use cURL. Add a header with the cache status:

## Add a cache miss/hit status header.
add_header X-My-Cache $upstream_cache_status;

to your cache config. Check for this header when doing requests with cURL.

--- appa

More information about the nginx mailing list