Re: [SMARTY-DEV] On caching mechanics

From: Date: Tue, 02 Sep 2003 15:57:55 +0000
Subject: Re: [SMARTY-DEV] On caching mechanics
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1846@lists.php.net to get a copy of this message
--- "Konstantin A. Pelepelin" <checat@pochtamt.ru> wrote: > 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 Is this not the same race condition that messju was working on recently? It seems to me that its more of a logging issue than an actual problem. Perhaps @ will help? > 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? Truly. Although I think that Smarty error handling could be improved, the fact that it is simple means that it doesn't step on the toes of custom error handlers. I find that xdebug http://xdebug.derickrethans.nl/ is very useful for debugging, trace analysis, profiling, code coverage, etc. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

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