# Cache manager

**URL:** <https://www.ruby-forum.com/t/cache-manager/205593>\
**Category:** NGINX\
**Created:** [April 10, 2011, 2:43am UTC](https://www.ruby-forum.com/t/cache-manager/205593 "2011-04-10T02:43:30Z")\
**Posts on this page:** 4\
**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:** [April 10, 2011, 2:43am UTC](https://www.ruby-forum.com/t/cache-manager/205593/1 "2011-04-10T02:43:30Z")

</div>

Hi  
I have the line in my config like this…

proxy\_cache\_path /var/cache/disk1/nginx\_proxy\_cache levels=2:2:2  
keys\_zone=disk1:500m inactive=36h max\_size=95000m;

This regularly finds its way over 100GB… anything more I can do to make  
it stick to 95GB?

---

<div class="post-metadata">

**Author:** ![rkoskela](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ce73a5/32.png) [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Post date:** [April 10, 2011, 3:18am UTC](https://www.ruby-forum.com/t/cache-manager/205593/2 "2011-04-10T03:18:37Z")

</div>

Apologies, it is not the cache taking up the space, it is the temp  
directory. But why is it still writing (and more importantly, not  
deleting!) the temp files. I disabled them in the config:

```
                    proxy_temp_path 

```

/var/cache/disk1/nginx\_proxy\_temp9001 1 2 3;  
proxy\_max\_temp\_file\_size 0;

/var/cache/disk1/nginx\_proxy\_temp9001# du -sh  
51G .

😮

Many thanks

From: Richard K. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)]  
Sent: 10 April 2011 01:43  
To: ‘removed\_email\_address@domain.invalid’  
Subject: cache manager

Hi  
I have the line in my config like this…

proxy\_cache\_path /var/cache/disk1/nginx\_proxy\_cache levels=2:2:2  
keys\_zone=disk1:500m inactive=36h max\_size=95000m;

This regularly finds its way over 100GB… anything more I can do to make  
it stick to 95GB?

---

<div class="post-metadata">

**Author:** ![rkoskela](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ce73a5/32.png) [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Post date:** [April 11, 2011, 8:23am UTC](https://www.ruby-forum.com/t/cache-manager/205593/3 "2011-04-11T08:23:29Z")

</div>

proxy\_cache\_path /var/cache/disk1/nginx\_proxy\_cache levels=2:2:2  
keys\_zone=disk1:500m inactive=36h max\_size=95000m;

Reset temp directory

Posted at Nginx Forum:

> **[Nginx Forum :: Nginx Mailing List - English](https://forum.nginx.org/read.php?2,189795,190040#msg-190040)**
>
> A portal to and from the mailing list.

---

<div class="post-metadata">

**Author:** ![rkoskela](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ce73a5/32.png) [@rkoskela](https://www.ruby-forum.com/u/rkoskela)\
**Post date:** [April 11, 2011, 8:24am UTC](https://www.ruby-forum.com/t/cache-manager/205593/4 "2011-04-11T08:24:06Z")

</div>

[PHP Newsletter](http://www.phpnewsletter.org/)

Posted at Nginx Forum:

> **[Nginx Forum :: Nginx Mailing List - English](https://forum.nginx.org/read.php?2,189795,190041#msg-190041)**
>
> A portal to and from the mailing list.
