Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Disable open_file_cache for a specific location (14 replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>