clearstatcache()
function clearstatcache(bool $clear_realpath_cache = false, string $filename = ''): void
Clears file status cache.
Parameters:
$clear_realpath_cache(bool), defaultfalse, optional$filename(string), default'', optional
Returns: void
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/clearstatcache.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how clearstatcache is implemented in the compiler, see the internals page.