[Q] Does PHP have a negative cache for file stat operations?
| From: | Eric Stenson | Date: | Thu, 19 Mar 2015 20:26:16 +0000 |
| Subject: | [Q] Does PHP have a negative cache for file stat operations? | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-85237@lists.php.net to get a copy of this message | ||
PHP Internals folks--
We're doing some performance work in WinCache, and we're finding that some frameworks
are...uh...enthusiastically using file_exists(), is_file() and is_dir() functions on
files/directories that don't exist. Every. Single. Pageload.
Does the PHP stat cache include negative cache entries? If not, why not?
Are there any existing extensions that implement a negative cache for file_exists(), is_file(), et.
al.?
Thank you!
--E.