# Help with cache manager

**URL:** <https://www.ruby-forum.com/t/help-with-cache-manager/223567>\
**Category:** NGINX\
**Created:** [October 9, 2012, 10:46pm UTC](https://www.ruby-forum.com/t/help-with-cache-manager/223567 "2012-10-09T22:46:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [October 9, 2012, 10:46pm UTC](https://www.ruby-forum.com/t/help-with-cache-manager/223567/1 "2012-10-09T22:46:31Z")

</div>

Hi,

I’m having trouble with the cache manager, it is not controlling the  
max\_size of the cache.

I have 22 workers on a 24 core server, 3 cache paths, one with 600g and  
other two with 200g of max\_size.

The cache path with 600g usually pass this value and reach 640g, as  
example.  
The files used on this server has no more than 300mb each.

The other 200g cache paths don’t have this problem.

Do you know any problem about a limit on max\_size?  
Any suggestion where I can investigate the problem?

The configuration is like this  
proxy\_cache\_path /path1 levels=1:2 keys\_zone=c1:1024m inactive=10d  
max\_size=600g;  
proxy\_cache\_path /path2 levels=1:2 keys\_zone=c2:1024m inactive=10d  
max\_size=200g;  
proxy\_cache\_path /path3 levels=1:2 keys\_zone=c3:1024m inactive=10d  
max\_size=200g;

When I restart the server the cache goes to the configured size.  
Nginx: 1.2.0 with cache\_purge module

Regards,  
Wandenberg
