Caching all but part

From: Date: Wed, 30 Jan 2002 05:01:29 +0000
Subject: Caching all but part
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2610@lists.php.net to get a copy of this message
I'm currently working on a new version of a website, www.soapbox.co.nz, in PHP using Smarty. And I have to say, it was exactly what I was looking for: it includes logic :-) ..... none of those horrible block commands that leave things in if you don't explicitly use it & hide it.... Basically I want to cache all but one part of the page... (I find the caching greatly increases the speed of the site, as it heavily relies on a database) The one part of the page is the bit that has a "You're not logged in, so can't post. Login or Register Now.", and when they are logged in it should say "Post Content/Logout/Etc.". Is there a way I can do this dynamically? (I.e.. have the rest of the page cached, but not this one little bit?) Other than that, are there any good reasons why different pages can't have different cache time-outs? (I don't think so, and I haven't tried, but it's a thought.) Thanks, Patrick.

Attachment: [application/x-pkcs7-signature] smime.p7s
« previous php.smarty.general (#2610) next »