<p class="MsoNormal">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.</p><p class="MsoNormal">-Quintin </p><br><div class="gmail_quote">2012/2/8 Валентин Бартенев <span dir="ltr"><<a href="mailto:ne@vbart.ru" target="_blank">ne@vbart.ru</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>On Wednesday 08 February 2012 11:44:04 Quintin Par wrote:<br>
> Hi all,<br>
><br>
> A section of my virtual(say /industry) is cached with<br>
><br>
> proxy_cache_key $scheme$host$request_uri;<br>
><br>
> key. This will cache all pages under this virtual. I do cache invalidation<br>
> by firing a request with<br>
><br>
> proxy_cache_bypass<br>
><br>
> Now if I need to invalidate cache for a page under this virtual, how should<br>
> I go about doing it?<br>
><br>
> Say /industry is the location directive<br>
><br>
> I need to invalidate just<br>
><br>
> /industry/category/cars<br>
><br>
> How do I do this?<br>
><br>
<br>
</div></div>The best way would be to create a location for this particular page:<br>
<br>
location /industry/category/cars {<br>
...<br>
}<br>
<br>
<a href="http://nginx.org/en/docs/http/ngx_http_core_module.html#location" target="_blank">http://nginx.org/en/docs/http/ngx_http_core_module.html#location</a><br>
<br>
<br>
also, you can utilize the map directive functionality, e.g:<br>
<br>
map $uri $is_cached_uri {<br>
default 1;<br>
/industry/category/cars 0;<br>
}<br>
<br>
proxy_cache_bypass $is_cached_uri;<br>
<br>
<a href="http://wiki.nginx.org/HttpMapModule" target="_blank">http://wiki.nginx.org/HttpMapModule</a><br>
<br>
<br>
wbr, Valentin V. Bartenev<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">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>