On caching mechanics

From: Date: Tue, 02 Sep 2003 15:25:12 +0000
Subject: On caching mechanics
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1844@lists.php.net to get a copy of this message
Imagine that first process creates directory for cache file, at this moment second process makes a sort of clear_all_cache(), which removes directory structure, and then first process cannot open file for writing. Is this scenario possible with Smarty? Is there a way to avoid this? Or can we make this invisible to user? Question raises because of the following accident: Warning: Smarty error: problem writing temporary file '/path_to_cache/cache/group/%%177/%%1774736962/3f54a904c6c0e' in .../lib/Smarty/Smarty.class.php on line 1156 where the next update shows no error Konstantin A. Pelepelin PS By the way, line number points to $smarty->trigger_error() function instead of the actual problem place. Could it be modified?

« previous php.smarty.dev (#1844) next »