|
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 |
koejkje Smarty Rookie
Joined: 27 Nov 2003 Posts: 30 Location: Miami, Florida
|
Posted: Wed Feb 02, 2005 7:07 am Post subject: Clear Cache Does Not Work |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Feb 02, 2005 2:48 pm Post subject: |
|
|
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 |
|
koejkje Smarty Rookie
Joined: 27 Nov 2003 Posts: 30 Location: Miami, Florida
|
Posted: Wed Feb 02, 2005 4:02 pm Post subject: |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Wed Feb 02, 2005 4:09 pm Post subject: |
|
|
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 |
|
koejkje Smarty Rookie
Joined: 27 Nov 2003 Posts: 30 Location: Miami, Florida
|
Posted: Wed Feb 02, 2005 4:42 pm Post subject: |
|
|
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 |
|
|
|
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
|