Re: [SMARTY-DEV] Smarty 2.6.0 RC1 - bug: cache file remembers removed templates
| From: | messju mohr | Date: | Fri, 22 Aug 2003 14:06:54 +0000 |
| Subject: | Re: [SMARTY-DEV] Smarty 2.6.0 RC1 - bug: cache file remembers removed templates | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1794@lists.php.net to get a copy of this message | ||
thanks for reporting this one! it's fixed in cvs. please test and let
me know if you disagree that it's fixed :)
greetings
messju
On Fri, Aug 22, 2003 at 03:37:56PM +0400, Konstantin A. Pelepelin wrote:
>
> Situation: 1. Template test/a.html includes template test/b.html. Caching
> enabled, $compile_check enabled.
> 2. I remove a template b.html and remove a link to it from a.html
> 3. At first page reload I get good new page. But on following reloads (from
> cache) I get
>
> Warning: Smarty error: unable to read resource: "test/b.html" in
> .../lib/Smarty/Smarty.class.php on line 1156
>
> Warning: Undefined index: resource_timestamp in
> .../lib/Smarty/core/core.read_cache_file.php on line 74
>
> I remove all compiled templates, but warnings still be. Actually, using
> 'grep -r b.html *' in project dir, I see the only memory of it in the cache
> file, but on reload I still get the warnings.
>
> 4. I remove cache file, and then everything works.
>
> Actually, second warning raises only when debug enabled, error reporting
> E_ALL.
>
> WBR,
> Konstantin A. Pelepelin