# Nginx cache tuning / debug

**URL:** <https://www.ruby-forum.com/t/nginx-cache-tuning-debug/216943>\
**Category:** NGINX\
**Created:** [February 17, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/nginx-cache-tuning-debug/216943 "2012-02-17T12:10:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [February 17, 2012, 12:10pm UTC](https://www.ruby-forum.com/t/nginx-cache-tuning-debug/216943/1 "2012-02-17T12:10:01Z")

</div>

Hello. I cache contents with NGINX proxy\_cache in all my sites but I’m  
not sure I’ve the best setup.

Are there rules/hints to properly set the size and/or the TTL for the  
cache ?  
Would be nice to have a tool that monitor/track files written in the  
cache and those deleted (an the reason as well)

Is there such a tool or can I enable some logging feature to get these  
data ?

Thanks

–  
Simone
