★ wanayoo — archive 1999 http://fr.php.net/manual/cs/function.clearstatcache.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | reporting bugs | php.net sites | links 
search for in the  
previouschowncopynext
Last updated: Sun, 21 Jul 2002
view this page in Printer friendly version | English | Brazilian Portuguese | Chinese | Dutch | Finnish | French | German | Hungarian | Italian | Japanese | Korean | Polish | Romanian | Russian | Spanish | Turkish

clearstatcache

(PHP 3, PHP 4 )

clearstatcache -- Vymaže cache stavu souborů

Popis

void clearstatcache ( void)

Volání systémových funkcí stat či lstat má poměrně velkou režii. Tudíž se výsledek posledního volání všech stavových funkcí (viz seznam níže) ukládá pro použití při dalším takovém volání používajícím stejný název souboru. Pokud chcete vynutit novou kontrolu stavu, např. pokud je soubor kontrolován mnohokrát a může se změnit nebo zmizet, použijte tuto funkci k uvolnění výsledků posledního volání z paměti.

Tato hodnota se cachuje pouze po dobu běhu skriptu.

Ovlivněné funkce: stat(), lstat(), file_exists(), is_writable(), is_readable(), is_executable(), is_file(), is_dir(), is_link(), filectime(), fileatime(), filemtime(), fileinode(), filegroup(), fileowner(), filesize(), filetype(), a fileperms().

User Contributed Notes
clearstatcache
add a note about notes
eden_zero_x@hotmail.com
10-May-2002 01:22

There is another way to do this.
--------------------------------
<?php

error_reporting (E_ALL);

header("Cache-Control: no-cache, must revalidate"); 
header("Pragma: no-cache"); 
header("Expires: Mon,26 Jul 2002 05:00:00 GMT");
// and the page goes on
echo "Removes Cache"; ?>

ulfh@update.uu.se
10-May-2002 05:16

No, your example deals with the web cache, and not the stat cache. They are
two different concepts.

// Ulf Harnhammar

add a note about notes
previouschowncopynext
Last updated: Sun, 21 Jul 2002
show source | credits | stats | mirror sites:  
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Tue Jul 30 05:05:42 2002 CEST