Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

does smarty clear cache delete files?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
muralik
Smarty Rookie


Joined: 08 Mar 2004
Posts: 25

PostPosted: Tue Oct 26, 2004 1:20 am    Post subject: does smarty clear cache delete files? Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Oct 26, 2004 1:31 am    Post subject: Reply with quote

http://smarty.php.net/manual/en/api.clear.all.cache.php
Back to top
View user's profile Send private message Visit poster's website
muralik
Smarty Rookie


Joined: 08 Mar 2004
Posts: 25

PostPosted: Tue Oct 26, 2004 2:13 am    Post subject: tried Reply with quote

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
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Oct 26, 2004 2:39 am    Post subject: Reply with quote

If the cache files aren't deleted then there is a setup problem or file permission problem.
Back to top
View user's profile Send private message Visit poster's website
muralik
Smarty Rookie


Joined: 08 Mar 2004
Posts: 25

PostPosted: Tue Oct 26, 2004 2:48 am    Post subject: seutp problem Reply with quote

Hi,
what setup problem could be there ?

i am using windows.. and i have read write permission..
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Oct 26, 2004 3:25 am    Post subject: Reply with quote

is your cache_dir setup properly? it should remove all the files with no parameter
Back to top
View user's profile Send private message Visit poster's website
muralik
Smarty Rookie


Joined: 08 Mar 2004
Posts: 25

PostPosted: Tue Oct 26, 2004 3:44 am    Post subject: thanks Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General 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