What caching strategy would you recommendation for a largely static site which has some dynamic content (eg. a photo feed from another server) on some of the pages?
I would imagine that I would use Static Publisher for all static pages, and then partially cache the pages with the partial dynamic content. Am I correct?
But what I'm particularly curious about is how to use partial caching when a page is largely static but contains only a small amount of dynamic content. Would I put a partial cache block around most of the rest of template with no key (ie so it re-caches after the default TTL) and then cache block with appropriate keys around the dynamic portions of the template? I don't see any examples where it is done like this. For example, usually the majority of a page is static (eg. head, navigation bar, footer) - it seems strange to have to insert partial cache blocks around all these parts of the template. So how would we go about caching the majority of the page, and then using the partial cache blocks with appropriate keys for the dynamic portions? I'd imagine this is a fairly common issue?
<% include HeadDetails %>
<% include Header %>
<% include NavBar %>
<%-- I want the PhotoFeedFromFlickr template portion to be re-cached only if a new photo is in the stream, but otherwise, the rest of the page should be cached always for the default TTL --%>
<% cached LatestPhotoDataInFlickrStream %>
<% include PhotoFeedFromFlickr %>
<% end_cached %>
<% include Footer %>
Looking forward to hearing what you have to say.