Re: [SMARTY-DEV] On caching mechanics

From: Date: Thu, 04 Sep 2003 15:21:58 +0000
Subject: Re: [SMARTY-DEV] On caching mechanics
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1857@lists.php.net to get a copy of this message
> > Well, problem writing cache file is really not a > > problem, cache will be regenerated on next request (but > > on a not properly set up project this may be permanent > > problem, so at development time warning may be useful). > > that's the reason why i wouldn't want to lower the > error-level as you suggest below. with > $smarty->debugging=false (the default) notices a not > displayed regardless of the error-reporting setting. a > newbie installing smarty would be pulling his hair out > debbuging his/her cache_dir-settings. Mmm... I'd rely on checks for "is_writable" in smarty_core_write_cache_file() and smarty_core_write_compiled_resource(), unless you can assume something exotic where that directories are writable, but child directories aren't. Konstantin A. Pelepelin

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