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

directory behaviour of caching

 
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
t-rob
Smarty Rookie


Joined: 22 Feb 2006
Posts: 9
Location: Amsterdam, the Netherlands

PostPosted: Fri Jul 21, 2006 11:45 am    Post subject: directory behaviour of caching Reply with quote

When caching is enabled and I for some reason (let's say periodic cleanup or upgrade of libs) want to clear all cache, the cached templates are deleted but all the directories (if subdirs=true) are still there. Is this standard behaviour or is there something with my permissions? It would be nice if I got delete these to with one simple command.

Thanks in advance!
Back to top
View user's profile Send private message Visit poster's website
t-rob
Smarty Rookie


Joined: 22 Feb 2006
Posts: 9
Location: Amsterdam, the Netherlands

PostPosted: Fri Jul 21, 2006 1:45 pm    Post subject: Reply with quote

This is strange, I created a CRON job that executes on php filesystem script which initiates the Smarty class. This one executes:
$smarty->clear_all_cache();
$smarty->clear_compiled_tpl();
$smarty->clear_config();

But this does not seem to work, but when I use the same code in a PHP webpage all cache including the directories are deleted. What is this?
Back to top
View user's profile Send private message Visit poster's website
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Fri Jul 21, 2006 5:31 pm    Post subject: Reply with quote

Sounds like your cron job is executing as a user that does not have the same privledges as your webserver to the affected directories/files.
Back to top
View user's profile Send private message
t-rob
Smarty Rookie


Joined: 22 Feb 2006
Posts: 9
Location: Amsterdam, the Netherlands

PostPosted: Sat Jul 22, 2006 10:42 am    Post subject: Reply with quote

user is root, when I do a var_dump() on the loaded smarty class I do get to see all the data but for some reason it doesn't inherit the options I set in the config. It's very strange ...
Back to top
View user's profile Send private message Visit poster's website
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