Re: [SMARTY] Show previously cached when caching=no
| From: | Ferdinand Beyer | Date: | Mon, 12 Aug 2002 09:28:24 +0000 |
| Subject: | Re: [SMARTY] Show previously cached when caching=no | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5653@lists.php.net to get a copy of this message | ||
On 12 Aug 2002 at 17:00, Lathiat wrote:
> Hello,
>
> Smarty shows the cached version of a page even if caching is
set
> explicitly to no.
Do you mean $smarty->caching = 'no' ???
> This really should happen, or is there is a reason for this.
Do you mean that it should _not_ happen? Ie. it should _not_ cache
templates with $smarty->caching = 'no' ???
> Note that the page was PREVIOUSLY cached, im not saying that
cachign =no
> is caching anyway ;p
Well, $smarty->caching is an integer PHP variable - officially it
should be set to 0, 1 or 2 -- 0 means 'no chaching', 1 and 2 mean
'caching' - see the docs for the difference between 1 and 2.
You may also use booleans here - setting $smarty->caching to false
means 'no caching', setting it to true means 'caching'.
You should not set it to other values - setting it to the string 'no' will
_enable_ caching as PHP consideres a non-empty string as the
boolean value true - see the PHP manual for boolean types.
I suggest that you try to set $smarty->caching = 0 -- that should
disable caching.
> Thanks
>
> Trent Lloyd [Lathat]
>
> Jan 22-25 2003 Linux.Conf.AU
> http://linux.conf.au/
> The Australian Linux Technical Conference!
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Ferdinand Beyer
<fbeyer@clickhand.de>