Re: realpath() caching
| From: | Andi Gutmans | Date: | Mon, 27 Sep 2004 17:26:46 +0000 |
| Subject: | Re: realpath() caching | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13016@lists.php.net to get a copy of this message | ||
At 02:54 PM 9/27/2004 +0200, Christian Schneider wrote:
Andi Gutmans wrote:What I meant was that any re-setting of this INI parameter (even if the cache size is the same) would flush the cache. I think this is fine because in real life, I don't think anyone will need it anyway. It's VERY rare to change symlinks in a way which will affect this. AndiYep, that was my thinking. At 08:29 PM 9/24/2004 +0200, Marcus Boerger wrote:I wouldn't introduce a new function but just have clearstatcache() do this. And I don't think we should use ini_set("realpath_cache_size", 0) for this as one then has to do ini_set() twice just to flush but still use the cache. The caches (stat and realpath) introduce enough magic to PHP so I'd at least keep the solution (clearstatcache) as simple as possible.if we have ini_set("realpath_catch_size") then obviously ini_set("realpath_catch_size", 0) === clearstatcache() without any additional line of code.