<div class="gmail_quote">On 31 May 2011 10:34, Per Buer <span dir="ltr"><<a href="mailto:perbu@varnish-software.com">perbu@varnish-software.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi <br><br><div class="gmail_quote"><div class="im">On Tue, May 31, 2011 at 12:23 AM, Lukas Kahwe Smith <span dir="ltr"><<a href="mailto:mls@pooteeweet.org" target="_blank">mls@pooteeweet.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Hi,<br>
<br>
I assume some of you have stumbled over LCI by now:<br>
<a href="http://www.ietf.org/id/draft-nottingham-linked-cache-inv-00.txt" target="_blank">http://www.ietf.org/id/draft-nottingham-linked-cache-inv-00.txt</a><br>
<br>
This is actually quite interesting. For an application we are building we are looking to create an invalidation service to which the various independent frontend server applications can register and which gets notified by the backend. Of course the frontends then have to figure out which pages all need to be invalidated. The original article will be easy. Some of the category overviews will also be easy to delete. What will already get harder is invalidating all articles that reference the given article and worse yet would be if we start caching search results.<br>



<br>
So I am wondering if you guys are looking at LCI for a future varnish impovement and if someone has build something like this on top of varnish today already that could maybe help us here.<br></blockquote><div><br></div>


</div><div>I'm pretty sure this can be implemented in VCL. No need to place it on the radar. I have an upcoming blog-post describing something similar. It might get a bit hairy with all the regular expression so it might be cleaner in a module.</div>
</div></blockquote></div><br><div>I experimented with something that sounds similar. Each page set a header recording the the content item ids that were used in rendering the page. They could then be purged with a regex including any dependents id. <a href="http://dev.plone.org/collective/browser/experimental.depends/trunk/varnish.vcl">http://dev.plone.org/collective/browser/experimental.depends/trunk/varnish.vcl</a></div>
<div><br></div><div>It works when you update or delete a content item, but it can't help the case where you add a new content item and want that to appear in listing.</div><div><br></div><div>Laurence</div>