|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Troublegum Smarty Rookie
Joined: 07 Sep 2003 Posts: 33 Location: Germany
|
Posted: Sun Sep 14, 2003 1:50 pm Post subject: clear_compiled_tpl('test') does not delete cached file |
|
|
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 |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Sep 15, 2003 12:56 pm Post subject: |
|
|
it's fixed in CVS. thanks (especially for the detailed report)! |
|
Back to top |
|
|
|
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
|