<div class="gmail_quote">On Wed, Jan 12, 2011 at 4:03 PM, Caunter, Stefan <span dir="ltr"><<a href="mailto:scaunter@topscms.com">scaunter@topscms.com</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-CA" link="blue" vlink="purple"><div><div class="im"><div><p class="MsoNormal">On Wed, Jan 12, 2011 at 1:39 PM, Caunter, Stefan <<a href="mailto:scaunter@topscms.com" target="_blank">scaunter@topscms.com</a>> wrote:</p>
<div><div><div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Even on heavily commented sites, the number of POSTs for new comments will be low per second. Issue always seems to be pulling comments for each page load. Loading comments with a GET, with a ttl > 0 seems to work well for us (no ESI). Is there a reason you are running with TTL at zero?</span></p>
</div></div></div><div><p class="MsoNormal"> </p></div><div><p class="MsoNormal">Yeah, sorry, it was not so much about the TTL as the ability to still lookup the cached page and pass the POST through to the ESI. I understand we can increase the TTL of the ESI, but the real goal here is to have a separate ESI only server that handles all authenticated traffic, while keeping the frontend server served completely from the Varnish cache.</p>
</div></div><p class="MsoNormal"><span style="color:#1F497D"> </span></p></div><p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D">Ah yes. Consider a subdomain. We pipe for cases like this.</span></p></div></div>
</blockquote></div><br><div>Can you describe a bit more what you mean? We have our frontend site, <a href="http://origin.example.com">origin.example.com</a>, which has ESIs pointing to <a href="http://ugc.example.com">ugc.example.com</a> (ugc == user generated content). If you pipe in vcl_recv, ESIs are not processed. Maybe I'm missing something. :)</div>
<div><br></div><div>Thanks!</div><div><br></div><div>James</div>