protocol wrappers (many of which are network based). I think it'd make sense to allow clearstatcache() to selectively clear all cache entries, or only entries for wrappers which do not have the is_url bit set.
Maybe this should be generalized to a cache_flush() function with e.g. two optional parameters: Cache type to flush and object to flush from cache.
Something like cache_flush(); # Same as flushcache(CACHE_ALL) cache_flush(CACHE_STAT) # Same as clearstatcache() cache_flush(CACHE_REALPATH); cache_flush(CACHE_REALPATH, $path);
Caches can help, they can also confuse you and be in the way and you need control over them. With a reasonable interface.
I'd also propose to disable caching in the default ini file as according to my observations most users are not pushing their servers to the limit but they do get nailed by strange bugs due to caching artefacts.
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php