Re:Re: Caching question
| From: | Brian E . Lozier | Date: | Thu, 20 Dec 2001 23:14:47 +0000 |
| Subject: | Re:Re: Caching question | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2347@lists.php.net to get a copy of this message | ||
For some reason, that's not making sense to me. Since I have nested categories, the cache_id
keeps getting
appended over and over, so I end up with URLS that look like:
http://www.massassi.org/saberworks/files.php?catID=2&cache_id=/saberworks/files.php?catID=1&cache_id=/saberwo
rks/files.php
And here's my template:
files.php?catID={$Categories[rows].catID}&cache_id={$smarty.server.REQUEST_URI}
Is there something else I could use as a cache_id? Such as the 'catID' which I use to
determine the
category, anyway? Will that mess anything up?
Brian
------------------------------------
"How should I know if it works? That's what beta testers are for. I only coded it." -
Linus Torvalds
----- Original Message -----
From: Monte Ohrt <monte@ispi.net>
To: smarty@lists.ispi.net
Date: 12/20/01 3:13:28 PM
>
>It will if you pass $REQUEST_URI as the cache_id.
>
>"Brian E. Lozier" wrote:
>>
>> Just a quick question... does smarty generate different cache files based on the arguments
>> passed to a
page?
>>
>> For instance:
>>
>> files.php
>> files.php?order_by=date
>> files.php?order_by=date&start=45
>>
>> Will those generate different caches? Or will I get the same results back no matter what?
>> I guess you
can see
>> what I'm trying to do, just order the files differently, generate page number
>> listings, etc.
>>
>> Thanks,
>> Brian
>>
>> ---
>> 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/
>
>---
>You are currently subscribed to smarty as: brian@massassi.net
>To unsubscribe send a blank email to $subst('Email.Unsub')
>Visit Smarty's homepage at &JHäo¼
>ě?Zhttp://www.phpinsider.com/php/code/Smarty/