PHP3 Manual
PrevNext

clearstatcache

clearstatcache -- clear file stat cache

Description

void clearstatcache(void);

Invoking the stat() system call on most systems is quite expensive. Therefore, the result of the last call to any of the status functions (listed below) is stored for use on the next such call using the same filename. If you wish to force a new status check, for instance if the file is being checked many times and may change or disappear, use this function to clear the results of the last call from memory.

Affected functions include stat(), file_exists(), filectime(), fileatime(), fileinode(), filegroup(), fileowner(), filesize(), filetype(), and fileperms().


PrevHomeNext
chownUpcopy