-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Nov 29, 2005, at 6:12 PM, David Richardson wrote:
> A complete page is the smallest cache fragment Typo knows about. > Sameas a Movable Type site. This was a Typo design decision, rather > than aRails one. > Not flexible, and not as fast as a page-component RAM cache, > buteasier to implement. An alternate caching mechanism is in > thedevelopment area for comment, as well as a patch to include > abrowser-fetch mechanism (Javascript) for sidebar content -http:// > typo.leetsoft.com/trac/ticket/345 > I don't understand where the pages are cached, though. Typo seems > tobe unusually sensitive to configuration, and I wonder if the > cachingmechanism contributes to these problems. I've just uploaded a new version of the XPATCH on #345. Now you don't need to change your theme for proper operation. When using this patch, the sidebar content for all the pages is cached and pulled from public/sidebar/sidebar_content.html. I must disagree about "not as fast" as page component caching. The overhead of having to hit Rails for every page view (for component cache) is huge when compared to lighttpd or Apache MPM-worker serving up HTML pages. To me, on my website, it is not such a big deal. But on a site that sees a lot more traffic, it could get pretty painful. When Scott was testing it was an order of magnitude slower to do component cache than page cache (IIRC). I use the patch for #345 for carrel.org and have a cron job that blows away the sidebar_content.html file every hour or so to make sure it stays fresh. This also guarantees that the sidebar view remains consistent across all the pages. If I was using my thinking cap I could have the sidebar reusable on the non-Typo pages as well using the same little Javascript snippet, which is handy. The new patch is "indep-sidebar-caching.6.patch" __ wac -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (Darwin) iQIVAwUBQ44eDMoU8+xqMUDPAQo2TQ//dZOvSSPZBAKitSHvFEEoXfBvI3KPxjy2 jshFDK+AjPD9h8U0oVUcBqwZX0aUN9mbwDpQ1azpJsJFlTCsh8w2h9/Vs3G+cGzx Al66XHak6gEcFYhPAEW21IO3xuiO2+gdbyZdpw9K74MfNgtWGcXBHM4eKWbrFnI5 SYjXz/TaWMbCsGxaZc2fc3yBuRA2QIN/K+C4r6bfR2Trvn/NjWa0vuJcsNV+C/aY ZBWtL5NVDBkIe1cjCx+sEoNrB92MInssdoIse30aUbU9TWqUOHemHFhArTRCXemk HZrk/Rxixu85X5+Y2vH+YtvfDzVcw6SFAzDzgUGZg6YgYl1quLb1hpKFTRnp7XVW 3ChdlOQeX6kq3+Nrx65rnY6U4CoqAIPoejCy6SPvOydSRZ+4xsq13AeQLJrgX4ce SzpRkl1P3TqbOeBknBPcGKjrnybM2q/rIMdDyZUPjTLEFNNaIa5jXUOHThv4mML6 Y24Ia9ydq3yX+UU+ybbQpdMqZrv1FRvPM+LZM05jgtB9LNUMigtU9s/NcXmgLszg RyAaQYd3vZ1OVugh3Y/IokevpEdOOSoLkvXN1CGAQJ7Eqoj4nlan51bInugQGsPL BOWsfLTPxspae4qzShzqMIMKf6ov2exwqL3aPLF/Jm1jMpNPaMkJB3ZoMSsz+uJ3 zI3Yws4s8JQ= =eFVc -----END PGP SIGNATURE-----
