Re: Caching question (more)
| From: | Brian E . Lozier | Date: | Sun, 23 Dec 2001 03:07:44 +0000 |
| Subject: | Re: Caching question (more) | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-2375@lists.php.net to get a copy of this message | ||
Okay, I think it was trying to use that argument via the main.tpl which is not the template that
contains the
data I'm trying to cache. What I do is have one 'main.tpl' that has the main site
design, then I use $tpl-
>fetch() inside each of my scripts to get the actual design for the internal part of that page.
>For a basic
example:
main.tpl:
<html>
<body>
{Content}
</body>
</html>
Then in my files.php:
$tpl->assign("Content", $tpl->fetch("files.tpl"));
Is there a way to make the cache work through there? I tried passing it like:
$tpl->assign("Content", $tpl->fetch("files.tpl", $REQUEST_URI));
But it still didn't work. Any ideas? I also upgraded to the latest Smarty and it's still
not working.
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: "Brian E. Lozier" <brian@massassi.net>
Date: 12/21/01 11:53:14 AM
>
>I'd try to debug the cache file it is using in the _read_cache_file()
>function and figure out why they are the same (if they are indeed).
>
>"Brian E. Lozier" wrote:
>>
>> >> What version was that functionality added? I'm in version 1.4.6. If
>> >> that's not it, any other ideas?
>>
>> As for your other questions, yeah, $REQUEST_URI is passing the value correctly. I'm
>> echoing it just
above,
>> and it's not in a function.
>>
>> Brian
>>
>> ----- Original Message -----
>> From: Andrei Zmievski <andrei@ispi.net>
>> To: "Brian E. Lozier" <brian@massassi.net>
>> Date: 12/21/01 6:45:36 AM
>>
>> >
>> >On Fri, 21 Dec 2001, Brian E. Lozier wrote:
>> >> Yeah, I made sure. I'm echoing it right before that line, and the value is
>> >> consistent with the URL I'm
>> >> accessing. However, I'm still getting the same data regardless of which
>> >> catID I pass in (only when
>> caching
>> >> is on). Any other ideas?
>> >
>> >Which version of Smarty are you using?
>> >
>> >-Andrei
>> >* The great thing about standards is that there are so many to choose from. *
>>
>> ---
>> 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/