Is there a way to cache/uncache depending on GET variable?
| From: | Karl Timmermann | Date: | Fri, 11 Mar 2005 23:12:54 +0000 |
| Subject: | Is there a way to cache/uncache depending on GET variable? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-12313@lists.php.net to get a copy of this message | ||
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