Skip to content

Commit

Permalink
Use existing clearstatcache note.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crell committed Dec 14, 2024
1 parent 6cc375b commit 0fc639a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions reference/filesystem/functions/touch.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,7 @@ if (!touch('some_file.txt', $time)) {
<refsect1 role="notes">
&reftitle.notes;
&note.filesystem-time-res;
<note>
<simpara>
Updates to the <literal>mtime</literal> or <literal>atime</literal>
of a file will not be reflected immediately in filesystem operations
such as <function>filemtime</function>. That's because the information
is cached, and this function does not automatically clear the cache.
To have changes reflected in the application immediately, call
<function>clearstatcache</function> on the file.
</simpara>
</note>
&note.clearstatcache;
</refsect1>

<refsect1 role="seealso">
Expand Down

0 comments on commit 0fc639a

Please sign in to comment.