Re: [SMARTY] Is there a way to cache/uncache depending on GET variable?
| From: | Joe Stump | Date: | Sat, 12 Mar 2005 04:04:58 +0000 |
| Subject: | Re: [SMARTY] Is there a way to cache/uncache depending on GET variable? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12316@lists.php.net to get a copy of this message | ||
Yeah, check out cache_id. You can pass a token to the cache functions. I cache md5($_SERVER['REQUEST_URI']) for most of my pages. I add tokens for certain aspects as needed (ie. userID).
--Joe
--
Joseph C. Stump
joe@joestump.net
http://www.joestump.net
On Mar 11, 2005, at 3:12 PM, Karl Timmermann wrote:
Hello all, I want to have a page called "view_profile.php" that accepts GET form submits to view a profile that has information grabbed from a database. The request string would look like "http://www.site.com/view_profile?user=timmerk" However, I want to have Smarty cache the profile for each user, unless the user updates their profile, in which Smarty will remove the old cache, and make a new cache when it is compiled/cached the first time with the new change. Is there possible? Having it one php file, but caching/uncaching depending on the user in the GET request? Thanks! Karl Timmermann -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php