Function __global->clearstatcache
Definitions
sources_custom/phpstub.php
- Clears file status cache.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $clear_realpath_cache | boolean | No | No | False | N/A | N/A | Whether to clear the realpath cache or not |
| $filename | ?PATH | No | No | Null | N/A | N/A | Clear the realpath and the stat cache for a specific filename only; only used if clear_realpath_cache is true. (null: no filter) |
Preview
Code (PHP)
/**
* Clears file status cache.
*
* @param boolean $clear_realpath_cache Whether to clear the realpath cache or not
* @param ?PATH $filename Clear the realpath and the stat cache for a specific filename only; only used if clear_realpath_cache is true. (null: no filter)
*/
function clearstatcache(bool $clear_realpath_cache = false, ?string $filename = null)
* Clears file status cache.
*
* @param boolean $clear_realpath_cache Whether to clear the realpath cache or not
* @param ?PATH $filename Clear the realpath and the stat cache for a specific filename only; only used if clear_realpath_cache is true. (null: no filter)
*/
function clearstatcache(bool $clear_realpath_cache = false, ?string $filename = null)

