Welcome! Log In Create A New Profile

Advanced

Disable open_file_cache for a specific location

July 02, 2013 05:24PM
I have set the open_file_cache variable to max=5000 inactive=20s so that it is enabled globally but now I want to disable all caching for a specific virtual location on a domain:

- open_file_cache max=5000 inactive=20s;
-- location ^~ /gallery {
open_file_cache off;
}

Sadly that rule doesn't work because /gallery doesn't exist as a real folder. It is only a permalink (/%category%/%postname%/) from WordPress. All subpages (like www.domain.tld/gallery/flickr) should have no cache enabled because the plugin for those galleries doesn't work with caching.
How can I solve the problem?
Thanks in advance.
SubjectAuthorPosted

Disable open_file_cache for a specific location

PelekeJuly 02, 2013 05:24PM

Re: Disable open_file_cache for a specific location

Francis DalyJuly 02, 2013 05:44PM

Re: Disable open_file_cache for a specific location

PelekeJuly 02, 2013 05:56PM

Re: Disable open_file_cache for a specific location

Francis DalyJuly 03, 2013 03:56AM

Re: Disable open_file_cache for a specific location

PelekeJuly 03, 2013 08:00AM

Re: Disable open_file_cache for a specific location

Francis DalyJuly 03, 2013 06:18PM

Re: Disable open_file_cache for a specific location

PelekeJuly 04, 2013 03:16AM

Re: Disable open_file_cache for a specific location

Jonathan MatthewsJuly 04, 2013 08:32AM

Re: Disable open_file_cache for a specific location

PelekeJuly 05, 2013 03:24AM

Re: Disable open_file_cache for a specific location

PelekeJuly 07, 2013 04:27PM

Re: Disable open_file_cache for a specific location

Francis DalyJuly 08, 2013 01:10PM

Re: Disable open_file_cache for a specific location

PelekeJuly 08, 2013 03:42PM

Re: Disable open_file_cache for a specific location

Francis DalyJuly 08, 2013 06:06PM

Re: Disable open_file_cache for a specific location

PelekeJuly 09, 2013 03:34AM

Re: Disable open_file_cache for a specific location

Francis DalyJuly 10, 2013 05:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 54
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready