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

Clear Cache Does Not Work

 
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
koejkje
Smarty Rookie


Joined: 27 Nov 2003
Posts: 30
Location: Miami, Florida

PostPosted: Wed Feb 02, 2005 7:07 am    Post subject: Clear Cache Does Not Work Reply with quote

Can someone please explain why $smarty->clear_all_cache(); does not remove the files in my cache folder? I get no errors the files get generated just fine but I can not get them cleared for hte life of me. Any help is appreciated.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mohrt
Administrator


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

PostPosted: Wed Feb 02, 2005 2:48 pm    Post subject: Reply with quote

It should clear them. Is your cache_dir setting correct, and does the user executing the script have permission to delete the files?
Back to top
View user's profile Send private message Visit poster's website
koejkje
Smarty Rookie


Joined: 27 Nov 2003
Posts: 30
Location: Miami, Florida

PostPosted: Wed Feb 02, 2005 4:02 pm    Post subject: Reply with quote

The files are being written by apache and that is who si trying to delete them right? THe config has to be right if the files are being put there inteh first place right?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
mohrt
Administrator


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

PostPosted: Wed Feb 02, 2005 4:09 pm    Post subject: Reply with quote

It should work, what OS are you using? Maybe try a simple script that unlinks a cache file, see if that fails.
Back to top
View user's profile Send private message Visit poster's website
koejkje
Smarty Rookie


Joined: 27 Nov 2003
Posts: 30
Location: Miami, Florida

PostPosted: Wed Feb 02, 2005 4:42 pm    Post subject: Reply with quote

I really appreciate your time in this. I know it should work, I honestly can't believe it does not. I am having problems getting the unlink to work so I assume the issue is with the serever. The IUSR account is disabled on this box and I will have to get that situated. I will update my progress as I figure this out.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
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