- Fix layout (no tabs, not more than 78 chars on a line)

- Corrected <methodname>foo()</methodname> to <function>foo</function>


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@94829 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2002-09-06 06:54:44 +00:00
parent 6b3c8a6e6c
commit b28afcfa91

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- $Revision: 1.4 $ -->
<!-- split from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.clearstatcache">
<refnamediv>
@ -12,20 +12,25 @@
<type>void</type><methodname>clearstatcache</methodname>
<void/>
</methodsynopsis>
<para>
When you use <methodname>stat()</methodname>, <methodname>lstat()</methodname>, or any of the other functions listed in the affected functions
list (below), 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. For
instance, if the same file is being checked multiple times within a single script, and that file
is in danger of being removed or changed during that script's operation, you may elect to clear the
status cache. In these cases, you can use the <methodname>clearstatcache()</methodname> function to clear the information that PHP caches about a file.
<para>
When you use <function>stat</function>, <function>lstat</function>, or
any of the other functions listed in the affected functions list (below),
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. For instance, if the same file is being checked
multiple times within a single script, and that file is in danger of
being removed or changed during that script's operation, you may elect to
clear the status cache. In these cases, you can use the
<function>clearstatcache</function> function to clear the information
that PHP caches about a file.
</para>
<note>
<para>
This function caches information about specific filenames, so you only need to call <methodname>clearstatcache()</methodname> if
you are performing multiple operations on the same filename and require the information about that
particular file to not be cached.
</note>
This function caches information about specific filenames, so you only
need to call <function>clearstatcache</function> if you are performing
multiple operations on the same filename and require the information
about that particular file to not be cached.
</note>
</para>
<para>
Affected functions include <function>stat</function>,