Re: [SMARTY] Heavy Traffic

From: Date: Thu, 06 Jun 2002 10:16:20 +0000
Subject: Re: [SMARTY] Heavy Traffic
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4650@lists.php.net to get a copy of this message
Hi, Martijn van Zal wrote:
That sounds nice, but I have a couple of other things which mak it hard to cache the page. For example we have different voting systems around the site, If someone votes for an artwork the votes have to be correct. If someone posts a comment to an item the comment has to be there right away.
Things like comments and polls should not be cached. You can prevent them from being cached by using the insert handle (or, in my case, patch Smarty so it allows you to specify for each tag if it should be cached or not).
In other words, The site is *very* dynamic. At every event that occurs a lot of pages in the site have to be updated. The pages not only differ from user to user, but also from item to item, and from second to second. that makes the page too hard to cache in my opinion.
Caching makes sens as soon as the request rate of most of your content is higher than the update rate. If you have a large page that changes once a day, with a poll that changes every few minutes, than I would use the insert handler for the poll, but sill cache the rest of the page for a day, since thousands of requests on the page would benefit from this. I think in the already discussed new Smarty manual, we should not only explain features like caching, but also write a bit about decisions to make regarding these features. When to cache, what to cache and how to cache for example. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

« previous php.smarty.general (#4650) next »