PHP - Function clearstatcache()


Advertisements


Syntax

void clearstatcache ( void );

Definition and Usage

When you use stat(), lstat(), or any of the other file functions, PHP caches the information those functions return in order to provide faster performance. However, in certain cases, you may want to clear the cached information.

You will use the clearstatcache() function to clear the information that PHP caches about a file.

Parameters

ParameterDescription
voidNA

Return Value

No value is returned.

Example

Following is the usage of this function:

<?php
clearstatcache();         
?>

php_function_reference.htm