# Remove an entry from proxy cache

**URL:** <https://www.ruby-forum.com/t/remove-an-entry-from-proxy-cache/210298>\
**Category:** NGINX\
**Created:** [August 4, 2011, 12:13pm UTC](https://www.ruby-forum.com/t/remove-an-entry-from-proxy-cache/210298 "2011-08-04T12:13:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [August 4, 2011, 12:13pm UTC](https://www.ruby-forum.com/t/remove-an-entry-from-proxy-cache/210298/1 "2011-08-04T12:13:53Z")

</div>

Hi, to remove an entry from proxy cache is enough just to delete the  
cached  
file or you need to do something else. If simply deleting works, is  
there  
any point then of compiling nginx with cache purge module?

---

<div class="post-metadata">

**Author:** ![Calin\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3be4f8/32.png) [@Calin\_D](https://www.ruby-forum.com/u/Calin_D)\
**Post date:** [August 4, 2011, 12:51pm UTC](https://www.ruby-forum.com/t/remove-an-entry-from-proxy-cache/210298/2 "2011-08-04T12:51:41Z")

</div>

On Thu, Aug 04, 2011 at 01:13:35PM +0300, Calin D. wrote:

> Hi, to remove an entry from proxy cache is enough just to delete the cached  
> file or you need to do something else.

Yes, simple deleting works except

1. you will get error message in log, harmless though,
2. and if you limit cache size using max\_size the deleted file  
will be accounted as existant.

> If simply deleting works, is there  
> any point then of compiling nginx with cache purge module?

It allows to delete remotely and handles cache size properly.

–  
Igor S.

---

<div class="post-metadata">

**Author:** ![Calin\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3be4f8/32.png) [@Calin\_D](https://www.ruby-forum.com/u/Calin_D)\
**Post date:** [August 4, 2011, 2:28pm UTC](https://www.ruby-forum.com/t/remove-an-entry-from-proxy-cache/210298/3 "2011-08-04T14:28:23Z")

</div>

Thanks for the clarification. Is there a reason why cache purge module  
was not merged with the upstream version of nginx, since it would be  
very nice to have a way of purging cache items.

---

<div class="post-metadata">

**Author:** ![Calin\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3be4f8/32.png) [@Calin\_D](https://www.ruby-forum.com/u/Calin_D)\
**Post date:** [August 4, 2011, 5:08pm UTC](https://www.ruby-forum.com/t/remove-an-entry-from-proxy-cache/210298/4 "2011-08-04T17:08:42Z")

</div>

On Thu, Aug 04, 2011 at 03:27:46PM +0300, Calin D. wrote:

> Thanks for the clarification. Is there a reason why cache purge module  
> was not merged with the upstream version of nginx, since it would be  
> very nice to have a way of purging cache items.

Sometime ago I tried to implement the similar functionality in core  
nginx,  
but found some issues. Probably I will back to this again soon.

> > > If simply deleting works, is there  
> > > any point then of compiling nginx with cache purge module?
> > 
> > It allows to delete remotely and handles cache size properly.

–  
Igor S.

---

<div class="post-metadata">

**Author:** ![Calin\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3be4f8/32.png) [@Calin\_D](https://www.ruby-forum.com/u/Calin_D)\
**Post date:** [August 18, 2011, 1:01pm UTC](https://www.ruby-forum.com/t/remove-an-entry-from-proxy-cache/210298/5 "2011-08-18T13:01:18Z")

</div>

On 4 aug. 2011, at 17:08, Igor S. wrote:

> On Thu, Aug 04, 2011 at 03:27:46PM +0300, Calin D. wrote:
> 
> > Thanks for the clarification. Is there a reason why cache purge module  
> > was not merged with the upstream version of nginx, since it would be  
> > very nice to have a way of purging cache items.
> 
> Sometime ago I tried to implement the similar functionality in core nginx,  
> but found some issues. Probably I will back to this again soon.

I would sure want to second the request. Being able to purge the cache  
(default) would be such a big thing! I think it makes a huge difference!

Regards,

## Greg Tee

Chief @ [http://peerz.nl/](http://peerz.nl/)  
LinkedIn: [Greg Tee - Rabobank | LinkedIn](http://tm8.nl/yhg)
