cvs: phpdoc-hu /reference/filesystem/functions clearstatcache.xml
[email protected] ("Lajos Cseppent?")
| Newsgroups | php.doc.hu |
|---|---|
| Message-ID | <cvschappy1170570753@cvsserver> |
chappy Sun Feb 4 06:32:33 2007 UTC
Added files:
/phpdoc-hu/reference/filesystem/functions clearstatcache.xml
Log:
sync
http://cvs.php.net/viewvc.cgi/phpdoc-hu/reference/filesystem/functions/clearstatcache.xml?view=markup&rev=1.1
Index: phpdoc-hu/reference/filesystem/functions/clearstatcache.xml
+++ phpdoc-hu/reference/filesystem/functions/clearstatcache.xml
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- EN-Revision: 1.8 Maintainer: chappy Status: ready -->
<!-- split from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.clearstatcache">
<refnamediv>
<refname>clearstatcache</refname>
<refpurpose>Kiüríti a fájl státusz gyorsítótárat</refpurpose>
</refnamediv>
<refsect1>
<title>Leírás</title>
<methodsynopsis>
<type>void</type><methodname>clearstatcache</methodname>
<void/>
</methodsynopsis>
<para>
Ha a <function>stat</function>, <function>lstat</function>, vagy bármely
másik lejjebb listázott függvényt használsz, a PHP a jobb teljesítmény
érdekében gyorsítótárazza az
információkat, amiket ezek a függvények adhatnak vissza.
Bárhogy is, bizonyos esetekben szükséged lehet arra, hogy töröld a
gyorsítótárazott információkat. Például, ha ugyanazt a fájl többször ellenõrzi
ugyanaz az egyszerû script, és a fájl törlés vagy módosítás
lehetõségének van kitéve a program futása során, te amellett dönthetsz,
hogy törlöd a státusz gyorsítótárat. Ezekben az esetekben használhatod a
<function>clearstatcache</function> függvényt a PHP által a fájlról tárolt információk törléséhez.
</para>
<para>
Mindig tartsd fejben, hogy a PHP nem gyorsítótáraz információkat nem létezõ
fájlokról. Tehát ha meghívod a <function>file_exists</function> függvényt egy nem létezõ
fájl esetében, ez &false;-szal tér vissza míg létre nem hozod a fájlt. Ha létrehozod a fájlt,
&true;-t ad vissza még akkor is, ha már törölted a fájlt.
</para>
<note>
<para>
Ez a függvény információkat gyorsítótáraz jellegzetes fájlokról, tehát
csak a <function>clearstatcache</function> függvényt kell meghívnod, ha
több mûveletet hajtasz végre ugyanazon a fájlon és szeretnéd, hogy
a bizonyos fájlról ne gyorsítótárazzon információkat a PHP.
</para>
</note>
<para>
Befolyásolt függvények: <function>stat</function>,
<function>lstat</function>,
<function>file_exists</function>,
<function>is_writable</function>,
<function>is_readable</function>,
<function>is_executable</function>,
<function>is_file</function>,
<function>is_dir</function>,
<function>is_link</function>,
<function>filectime</function>,
<function>fileatime</function>,
<function>filemtime</function>,
<function>fileinode</function>,
<function>filegroup</function>,
<function>fileowner</function>,
<function>filesize</function>,
<function>filetype</function> és
<function>fileperms</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->