Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

clear_compiled_tpl('test') does not delete cached file

 
Post new topic   Reply to topic    Smarty Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
Troublegum
Smarty Rookie


Joined: 07 Sep 2003
Posts: 33
Location: Germany

PostPosted: Sun Sep 14, 2003 1:50 pm    Post subject: clear_compiled_tpl('test') does not delete cached file Reply with quote

Hi,

I am using Windows2000 and Smarty 2.6.0 RC1 with a special template resouce ('tpl').
I also set $smarty->default_resource_type to 'tpl' and $smarty->compile_id to a certain value (auto increment id).

I have the following problem.
When I call $smarty->clear_compiled_tpl('test'), the file in the compile dir is not deleted. I tracked down the error.
The path of the file is "templates/compiled/\1^%%-66^%%-662733300^test.php"
But $smarty->_get_auto_filename (called in smarty/libs/core/core.rm_auto.php) gets "templates/compiled/\1^%%-66^%%-662733300^test" as filename and unlink() fails. The extension .php is missing.


Note: when I use clear_compiled_tpl without giving the specific name of the template, the files are deleted successfully.

Troublegum
Back to top
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Mon Sep 15, 2003 12:56 pm    Post subject: Reply with quote

it's fixed in CVS. thanks (especially for the detailed report)!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP