clearstatcache
(PHP 4, PHP 5)
clearstatcache — Clears file status cache
Description
void clearstatcache
( void
)
You should also note that PHP doesn't cache information about non-existent
files. So, if you call file_exists() on a file that
doesn't exist, it will return FALSE until you create the file. If you
create the file, it will return TRUE even if you then delete the file.
However unlink() clears the cache automatically.
Note:
This function caches information about specific filenames, so you only
need to call clearstatcache() if you are performing
multiple operations on the same filename and require the information
about that particular file to not be cached.
Affected functions include stat(),
lstat(),
file_exists(),
is_writable(),
is_readable(),
is_executable(),
is_file(),
is_dir(),
is_link(),
filectime(),
fileatime(),
filemtime(),
fileinode(),
filegroup(),
fileowner(),
filesize(),
filetype(), and
fileperms().
Return Values
No value is returned.