<p class="MsoNormal">Simples way to say this would be, invalidate proxy_cache_key
but not all of the cache. </p><br><div class="gmail_quote">On Wed, Feb 8, 2012 at 5:32 PM, Max <span dir="ltr"><<a href="mailto:nginxyz@mail.ru">nginxyz@mail.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div>
08 февраля 2012, 13:37 от Quintin Par <u></u>:
> 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 Валентин Бартенев <u></u>

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

Do you want to do per-request cache invalidation
based on client information (header values, cookies,
originating IP etc.), so the cache is bypassed
whenever a client sends a request that matches
your cache invalidation criteria, or do you want
to be able to invalidate a certain URI for all
future clients and requests by sending some kind
of "switch caching off for this URI" request?

Max
</div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br>