Re: new ini parser, caching
| From: | Pierre | Date: | Tue, 11 Sep 2007 19:45:54 +0000 |
| Subject: | Re: new ini parser, caching | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-32269@lists.php.net to get a copy of this message | ||
On 9/11/07, Stanislav Malyshev <stas@zend.com> wrote:
> > well, some OSes allow subscribing to the notifications from filesystem
> > *bsd (including macos-x) use kqueue, linux and winnt have different
> > mechanisms for the same thing
>
> The question is how expensive are those notifications - i.e. if one has
> 1000 of them, will it be a trouble for the OS?
It is not really related to the stat cache but it may need a
clarification. The ini cache works on per directory basis and caches
the entries found in the current dir and the parent directories.
Once the TTL is over, it will check if there is a file in the current
dir and its parent directory (until docroot), just like htaccess.
Having this TTL reduces the performance impact drastically. For
example, htscanner has it set to 5mins by default. For what I heard,
many ISPs kept this default.
Cheers,
--Pierre