Smarty 2.6.0 RC1 - bug: cache file remembers removed templates

From: Date: Fri, 22 Aug 2003 11:37:56 +0000
Subject: Smarty 2.6.0 RC1 - bug: cache file remembers removed templates
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1793@lists.php.net to get a copy of this message
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

« previous php.smarty.dev (#1793) next »