# Each website with its own fastcgi\_cache\_path

**URL:** <https://www.ruby-forum.com/t/each-website-with-its-own-fastcgi-cache-path/236926>\
**Category:** NGINX\
**Created:** [October 11, 2013, 1:36pm UTC](https://www.ruby-forum.com/t/each-website-with-its-own-fastcgi-cache-path/236926 "2013-10-11T13:36:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alcina](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a587f6/32.png) [@alcina](https://www.ruby-forum.com/u/alcina)\
**Post date:** [October 11, 2013, 1:36pm UTC](https://www.ruby-forum.com/t/each-website-with-its-own-fastcgi-cache-path/236926/1 "2013-10-11T13:36:46Z")

</div>

Hello guys,

I would like to know if it is possible to have multiple  
fastcgi\_cache\_path /  
keys\_zone.

If I host multiple websites and all share the same keys\_zone, it becomes  
a  
problem if I have to purge the cache. I cannot purge it for a single  
website, only for all of them.

This is more out of curiosity than a real problem.

Best regards.

Posted at Nginx Forum:

> **[Each website with its own fastcgi\_cache\_path](https://forum.nginx.org/read.php?2,243622,243622#msg-243622)**
>
> Hello guys, I would like to know if it is possible to have multiple fastcgi\_cache\_path / keys\_zone. If I host multiple websites and all share the same keys\_zone, it becomes a problem if I have to purge the cache. I cannot purge it for a single...

---

<div class="post-metadata">

**Author:** ![ddutra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@ddutra](https://www.ruby-forum.com/u/ddutra)\
**Post date:** [October 11, 2013, 4:35pm UTC](https://www.ruby-forum.com/t/each-website-with-its-own-fastcgi-cache-path/236926/2 "2013-10-11T16:35:36Z")

</div>

Hello!

On Fri, Oct 11, 2013 at 07:35:56AM -0400, ddutra wrote:

> I would like to know if it is possible to have multiple fastcgi\_cache\_path /  
> keys\_zone.

Yes, it is possible. And that’s actually why the fastcgi\_cache  
directive needs zone name as a parameter.

–  
Maxim D.  
[http://nginx.org/en/donation.html](http://nginx.org/en/donation.html)

---

<div class="post-metadata">

**Author:** ![ddutra](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/74df32/32.png) [@ddutra](https://www.ruby-forum.com/u/ddutra)\
**Post date:** [October 11, 2013, 6:51pm UTC](https://www.ruby-forum.com/t/each-website-with-its-own-fastcgi-cache-path/236926/3 "2013-10-11T18:51:48Z")

</div>

Maxim  
Thanks for your time.

It really works. Thanks alot!

Posted at Nginx Forum:

> **[Re: Each website with its own fastcgi\_cache\_path](https://forum.nginx.org/read.php?2,243622,243627#msg-243627)**
>
> Hello guys, I would like to know if it is possible to have multiple fastcgi\_cache\_path / keys\_zone. If I host multiple websites and all share the same keys\_zone, it becomes a problem if I have to purge the cache. I cannot purge it for a single...
