Re: [SMARTY] error with cache
| From: | Nagger | Date: | Sat, 05 Apr 2003 20:36:31 +0000 |
| Subject: | Re: [SMARTY] error with cache | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9129@lists.php.net to get a copy of this message | ||
Hello...
I think that's an issue which i already send to smarty-dev some time ago:
http://marc.theaimsgroup.com/?l=smarty-dev&m=104742950807464&w=2
Unfortunatly this was never corrected.
At the current cvs-version of smarty.class you should add after line 1143:
if (!isset($_cache_info['template'])) $this->_cache_info['template'][]
= $_smarty_tpl_file;
I works fine for me.
Bye...
Nagger
----- Original Message -----
From: "Elgi" <elgi@tiscali.fr>
To: <smarty-general@lists.php.net>
Sent: Saturday, April 05, 2003 9:13 PM
Subject: [SMARTY] error with cache
> Hello smarty-general,
>
> I have a error with my cache and just only for one page.
> Whan the page isn't cache, it's good, but then the page is cache, i
> have this message :
> Warning: Invalid argument supplied for foreach() in c:\program
files\easyphp\www\padro.com\smarty\Smarty.class.php on line 2298
>
> in smarty.class.php :
> foreach ($this->_cache_info['template'] as $template_dep) {
> $this->_fetch_template_info($template_dep, $template_source,
$template_timestamp, false);
> if ($this->_cache_info['timestamp'] < $template_timestamp) {
> // template file has changed, regenerate cache
> return false;
> }
> }
>
> i don't know why i have a error only the page is cache !
> --
> Cordialement,
> Elgi
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>