← All docs

clearstatcache()

Clears file status cache.

clearstatcache()

function clearstatcache(bool $clear_realpath_cache = false, string $filename = ''): void

Clears file status cache.

Parameters:

  • $clear_realpath_cache (bool), default false, optional
  • $filename (string), default '', optional

Returns: void

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how clearstatcache is implemented in the compiler, see the internals page.