Re: realpath() caching

From: Date: Mon, 27 Sep 2004 12:54:44 +0000
Subject: Re: realpath() caching
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-13008@lists.php.net to get a copy of this message
Andi Gutmans wrote:
Yep, that was my thinking. At 08:29 PM 9/24/2004 +0200, Marcus Boerger wrote:
if we have ini_set("realpath_catch_size") then obviously ini_set("realpath_catch_size", 0) === clearstatcache() without any additional line of code.
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. Just my $.02, - Chris

« previous php.internals (#13008) next »