file functions and clearstatcache

From: Date: Tue, 21 May 2002 11:19:14 +0000
Subject: file functions and clearstatcache
Groups: php.general 
Request: Send a blank email to php-general+get-98578@lists.php.net to get a copy of this message
Im just double checking on the use of clearstatcache. I have a function that checks whether a file exists and loads it like so function foo($bar) { if (file_exists($bar)) {
        include($bar);
} } According to clearstat cache, its use is for files that change often. In my case the files are static, so I wanted to be clear, as to whether I should/shouldn't be using clearstatcache() in my sudo function?? Thanks

« previous php.general (#98578) next »