On Tue, 21 May 2002, Gerard Samuel wrote:
> 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??
You don't need it unless you expect the file will have changed during a
single execution of your PHP program (i.e., the .000001sec - 30sec that it
takes to run). This does not sound like anything you need to worry about.
miguel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php