|
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 |
muralik Smarty Rookie
Joined: 08 Mar 2004 Posts: 25
|
Posted: Tue Oct 26, 2004 1:20 am Post subject: does smarty clear cache delete files? |
|
|
Hi,
I am using
$smarty->clear_all_cache("product-list.tpl");
would this delete files ? or just make the cache expire.. because it is not deleting the files in the directory... |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
|
Back to top |
|
muralik Smarty Rookie
Joined: 08 Mar 2004 Posts: 25
|
Posted: Tue Oct 26, 2004 2:13 am Post subject: tried |
|
|
Hi,
I also tried
$smarty->clear_all_cache();
but it doesnt delete files... and i am not using the site at all.. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Oct 26, 2004 2:39 am Post subject: |
|
|
If the cache files aren't deleted then there is a setup problem or file permission problem. |
|
Back to top |
|
muralik Smarty Rookie
Joined: 08 Mar 2004 Posts: 25
|
Posted: Tue Oct 26, 2004 2:48 am Post subject: seutp problem |
|
|
Hi,
what setup problem could be there ?
i am using windows.. and i have read write permission.. |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Oct 26, 2004 3:25 am Post subject: |
|
|
is your cache_dir setup properly? it should remove all the files with no parameter |
|
Back to top |
|
muralik Smarty Rookie
Joined: 08 Mar 2004 Posts: 25
|
Posted: Tue Oct 26, 2004 3:44 am Post subject: thanks |
|
|
Hi thanks,
cache_dir is using relative path.. -> "site/default"
now i changed to absolute path -> "/www/virthosts/site/default"
and now it worked.. |
|
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
|