tag:blogger.com,1999:blog-4331031540540221444.post6427370139319659017..comments2012-06-25T00:46:17.929+00:00Comments on Dreams of a Scorpion: Caching static web content with SeasideMichael Davieshttp://www.blogger.com/profile/00446726284329769719noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4331031540540221444.post-84561863202924733112008-08-17T09:02:00.000+00:002008-08-17T09:02:00.000+00:00>html html: cachedHtml.Good catch, thanks Ramon...>html html: cachedHtml.<BR/><BR/>Good catch, thanks Ramon.<BR/><BR/>Your point about caching being a multi-level approach is very apposite; I actually started by caching the results of the call to tunes.org, but when I actually used the profiler, I realised that as much time was being spent generating the html, so caching at that point was a much more productive approach.<BR/><BR/>I then wentMichael Davieshttps://www.blogger.com/profile/00446726284329769719noreply@blogger.comtag:blogger.com,1999:blog-4331031540540221444.post-6233796900617255792008-08-16T16:40:00.000+00:002008-08-16T16:40:00.000+00:00Why this..html context document stream nextPutAll:...Why this..<BR/><BR/>html context document stream nextPutAll: cachedHtml.<BR/><BR/>Instead of simply this..<BR/><BR/>html html: cachedHtml.<BR/><BR/>I cache plenty of stuff in class variables as well, but at a finer grain than the component level so I generally wouldn't use a decorator. I'd directly ask for a particular fragment such as..<BR/><BR/>html html: (self fragmentAt: #header).<BR/><BR/>IRamon Leonhttps://www.blogger.com/profile/12528375698090050555noreply@blogger.com