Re: [SMARTY-DEV] On caching mechanics
| From: | messju mohr | Date: | Thu, 04 Sep 2003 15:56:37 +0000 |
| Subject: | Re: [SMARTY-DEV] On caching mechanics | ||
| References: | 1 2 3 4 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-1858@lists.php.net to get a copy of this message | ||
On Thu, Sep 04, 2003 at 07:21:58PM +0400, Konstantin wrote:
> > > 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(),
ahh, right, i forgot some extra checks where added by monte.
> unless you can assume something exotic where that
> directories are writable, but child directories aren't.
only with use_sub_dirs and safe_mode but this has generates it's own
E_WARNINGs. so no, i haven't.
> Konstantin A. Pelepelin