Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to see which objects get cached by my nginx reverse proxy (with an apache as a backend). So far I could not find a way, only the info that its not implemented yet.

The reason is that I would like to tweak my configuration for best performance without putting too much stress on the server, as the backend is a production system. I know benchmarking would be better, but its not an option right now. So I though an alternative measure would be to monitor the cache.

Is that possible, and if yes, how? (despite patching nginx with the patch mentioned in the link above)

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Nginx saves the cached files at the Proxy_cache_path folder. The files are named by the md5 ooutput of the proxy url.

Please note that nginx saves the proxy header on the cached file. So it might be hard to check pictures.

Avi

share|improve this answer
    
I finally found the folders in my proxy_cache_path growing, so I have an idea of the amount of data that is cached. But for finer tuning it would be interesting of have a log or debug option. –  Isaac Jun 12 '12 at 12:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.