Welcome! Log In Create A New Profile

Advanced

Re: Invalidate just one page under a location directive.

Quintin Par
February 08, 2012 04:38AM
Thanks would be difficult because my intention is to maintain per page
cache. So we are talking about 1000+ pages and more being created
dynamically.

-Quintin

2012/2/8 Валентин Бартенев <ne@vbart.ru>

> On Wednesday 08 February 2012 11:44:04 Quintin Par wrote:
> > Hi all,
> >
> > A section of my virtual(say /industry) is cached with
> >
> > proxy_cache_key $scheme$host$request_uri;
> >
> > key. This will cache all pages under this virtual. I do cache
> invalidation
> > by firing a request with
> >
> > proxy_cache_bypass
> >
> > Now if I need to invalidate cache for a page under this virtual, how
> should
> > I go about doing it?
> >
> > Say /industry is the location directive
> >
> > I need to invalidate just
> >
> > /industry/category/cars
> >
> > How do I do this?
> >
>
> The best way would be to create a location for this particular page:
>
> location /industry/category/cars {
> ...
> }
>
> http://nginx.org/en/docs/http/ngx_http_core_module.html#location
>
>
> also, you can utilize the map directive functionality, e.g:
>
> map $uri $is_cached_uri {
> default 1;
> /industry/category/cars 0;
> }
>
> proxy_cache_bypass $is_cached_uri;
>
> http://wiki.nginx.org/HttpMapModule
>
>
> wbr, Valentin V. Bartenev
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Invalidate just one page under a location directive.

Quintin Par February 08, 2012 02:46AM

Re: Invalidate just one page under a location directive.

Валентин Бартенев February 08, 2012 04:08AM

Re: Invalidate just one page under a location directive.

Quintin Par February 08, 2012 04:38AM

Re: Invalidate just one page under a location directive.

Valentin V. Bartenev February 08, 2012 05:44AM

Re: Invalidate just one page under a location directive.

Quintin Par February 08, 2012 06:10AM

Re[2]: Invalidate just one page under a location directive.

Max February 08, 2012 07:04AM

Re: Re[2]: Invalidate just one page under a location directive.

Quintin Par February 08, 2012 07:20AM

Re: Re[2]: Invalidate just one page under a location directive.

Quintin Par February 08, 2012 08:00AM

Re: Re[2]: Invalidate just one page under a location directive.

Quintin Par February 08, 2012 11:00AM

Re: Re[2]: Invalidate just one page under a location directive.

António P. P. Almeida February 08, 2012 11:16AM

Re: Re[2]: Invalidate just one page under a location directive.

Quintin Par February 08, 2012 11:24AM

Re: Re[2]: Invalidate just one page under a location directive.

António P. P. Almeida February 08, 2012 12:12PM

Re: Re[2]: Invalidate just one page under a location directive.

Quintin Par February 08, 2012 10:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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