# Problem with clear cache

**URL:** <https://www.ruby-forum.com/t/problem-with-clear-cache/214962>\
**Category:** NGINX\
**Created:** [December 16, 2011, 11:03pm UTC](https://www.ruby-forum.com/t/problem-with-clear-cache/214962 "2011-12-16T23:03:07Z")\
**Posts on this page:** 6\
**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:** [December 16, 2011, 11:03pm UTC](https://www.ruby-forum.com/t/problem-with-clear-cache/214962/1 "2011-12-16T23:03:07Z")

</div>

Hi,  
I am using Nginx 1.0.10 and purge module 1.4. But i have a problem with  
clear cache.

Example:  
[http://myserver/test.html](http://myserver/test.html) → can clear cache with  
[http://myserver/purge/test.html](http://myserver/purge/test.html)

[http://myserver/](http://myserver/) → can not clear cache  
[http://myserver/news/](http://myserver/news/) → can not clear cache

Anybody help me how to do that.

Thanks.

---

<div class="post-metadata">

**Author:** ![Tran\_Doc\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@Tran\_Doc\_C](https://www.ruby-forum.com/u/Tran_Doc_C)\
**Post date:** [December 19, 2011, 12:27pm UTC](https://www.ruby-forum.com/t/problem-with-clear-cache/214962/2 "2011-12-19T12:27:40Z")

</div>

From: Tran Doc C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> I am using Nginx 1.0.10 and purge module 1.4. But i have a problem with clear  
> cache.  
> [http://myserver/](http://myserver/) → can not clear cache  
> [http://myserver/news/](http://myserver/news/) → can not clear cache

You are trying to clear whole directories recursively…  
Are you sure the purge module is capable of doing that?  
From reading the README, it seems to only handle files…

JD

---

<div class="post-metadata">

**Author:** ![Tran\_Doc\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@Tran\_Doc\_C](https://www.ruby-forum.com/u/Tran_Doc_C)\
**Post date:** [December 19, 2011, 12:30pm UTC](https://www.ruby-forum.com/t/problem-with-clear-cache/214962/3 "2011-12-19T12:30:09Z")

</div>

Hi,

> I am using Nginx 1.0.10 and purge module 1.4. But i have a problem with  
> clear cache.  
> Example:  
> [http://myserver/test.html](http://myserver/test.html) → can clear cache with  
> [http://myserver/purge/test.html](http://myserver/purge/test.html)  
> [http://myserver/](http://myserver/) → can not clear cache  
> [http://myserver/news/](http://myserver/news/) → can not clear cache

What exactly are you trying to do and what is your configuration?

Best regards,  
Piotr S. \< [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) \>

---

<div class="post-metadata">

**Author:** ![Tran\_Doc\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@Tran\_Doc\_C](https://www.ruby-forum.com/u/Tran_Doc_C)\
**Post date:** [December 19, 2011, 12:30pm UTC](https://www.ruby-forum.com/t/problem-with-clear-cache/214962/4 "2011-12-19T12:30:09Z")

</div>

Hi,

> You are trying to clear whole directories recursively…  
> Are you sure the purge module is capable of doing that?

It’s not.

Best regards,  
Piotr S. \< [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) \>

---

<div class="post-metadata">

**Author:** ![Tran\_Doc\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@Tran\_Doc\_C](https://www.ruby-forum.com/u/Tran_Doc_C)\
**Post date:** [December 19, 2011, 1:48pm UTC](https://www.ruby-forum.com/t/problem-with-clear-cache/214962/5 "2011-12-19T13:48:04Z")

</div>

Hi,  
I don’t want to clear directories. I mean, clear a URL without .html.  
[http://myserver/](http://myserver/) is home page.  
[http://myserver/news/](http://myserver/news/) is a URL

How to clear these link with purge module?

Thanks,

* * *

From: Piotr S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
To: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Sent: Monday, 19 December 2011, 18:29  
Subject: Re: Problem with clear cache

Hi,

> You are trying to clear whole directories recursively…  
> Are you sure the purge module is capable of doing that?

It’s not.

Best regards,  
Piotr S. \< [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) \>

---

<div class="post-metadata">

**Author:** ![Tran\_Doc\_C](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b487fb/32.png) [@Tran\_Doc\_C](https://www.ruby-forum.com/u/Tran_Doc_C)\
**Post date:** [December 20, 2011, 11:39am UTC](https://www.ruby-forum.com/t/problem-with-clear-cache/214962/6 "2011-12-20T11:39:30Z")

</div>

Hi,

> I don’t want to clear directories. I mean, clear a URL without .html.  
> [http://myserver/](http://myserver/) is home page.  
> [http://myserver/news/](http://myserver/news/) is a URL
> 
> How to clear these link with purge module?

_What is your configuration?_

Best regards,  
Piotr S. \< [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) \>
