Re: Caching and URL query string
| From: | Monte Ohrt | Date: | Mon, 30 Jul 2001 13:22:36 +0000 |
| Subject: | Re: Caching and URL query string | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1297@lists.php.net to get a copy of this message | ||
and-is Uwe Regenbogen wrote:
>
> As this is my first posting to the mailing list I'll first like to say hello
> to everybody.
>
> And of course "Thank you" to Monte and Andrei for this great tool.
>
> Question:
> -is the URL's query string part of the caching logic?
Only if you use it in the cache id.
> -are the HTTP_POST_VARS part of the caching logic?
Only if you use it in the cache id.
>
> I've tried it several times but as soon as I switch caching ON all the
> previous / next page links show me the results I've already seen. Switching
> caching OFF will let the script work fine.
When you call display("index.tpl",$cache_id), it will create one cache
file for _each_ cache id. If you want different caches that depend on
the query string, then pass the query string as the cache id.
$smarty->display("index.tpl",$QUERY_STRING);
>
> I'm using PHP 4.06
>
> Thank you for your time and help,
>
> Uwe Regebogen
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/