Francis Daly
July 02, 2013 05:44PM
On Tue, Jul 02, 2013 at 05:24:15PM -0400, Peleke wrote:

Hi there,

> 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:

http://nginx.org/r/open_file_cache describes what open_file_cache does.

That description doesn't seem to match what you seem to indicate you
think it does.

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

Why do you think that it doesn't work?

What test do you do; what result do you see; and what result do you
expect to see?

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

nginx tends not to cache unless you configure it to.

Why do you think nginx is caching something that you do not want it to?

> How can I solve the problem?

I suspect that describing the problem in terms of specific things that
can be observed or tested will be a good start.

Right now, I'm not sure what problem you are reporting.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Disable open_file_cache for a specific location

Peleke July 02, 2013 05:24PM

Re: Disable open_file_cache for a specific location

Francis Daly July 02, 2013 05:44PM

Re: Disable open_file_cache for a specific location

Peleke July 02, 2013 05:56PM

Re: Disable open_file_cache for a specific location

Francis Daly July 03, 2013 03:56AM

Re: Disable open_file_cache for a specific location

Peleke July 03, 2013 08:00AM

Re: Disable open_file_cache for a specific location

Francis Daly July 03, 2013 06:18PM

Re: Disable open_file_cache for a specific location

Peleke July 04, 2013 03:16AM

Re: Disable open_file_cache for a specific location

Jonathan Matthews July 04, 2013 08:32AM

Re: Disable open_file_cache for a specific location

Peleke July 05, 2013 03:24AM

Re: Disable open_file_cache for a specific location

Peleke July 07, 2013 04:27PM

Re: Disable open_file_cache for a specific location

Francis Daly July 08, 2013 01:10PM

Re: Disable open_file_cache for a specific location

Peleke July 08, 2013 03:42PM

Re: Disable open_file_cache for a specific location

Francis Daly July 08, 2013 06:06PM

Re: Disable open_file_cache for a specific location

Peleke July 09, 2013 03:34AM

Re: Disable open_file_cache for a specific location

Francis Daly July 10, 2013 05:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 301
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready