acidglitter Posted August 19, 2008 Share Posted August 19, 2008 I just have a tiny question about using file_exists(). When you use it, how long is information about the file cached? Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted August 19, 2008 Share Posted August 19, 2008 What do you mean? Quote Link to comment Share on other sites More sharing options...
awpti Posted August 19, 2008 Share Posted August 19, 2008 Nothing is cached with file_exists. In fact, nothing about PHP is cached as far as the results go. Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted August 19, 2008 Share Posted August 19, 2008 Please elaborate, I'm not sure which information and what cache you are referring to... Do you mean how "old" the information the function returns is? EDIT: I agree with awpti. Nothing is really cached, so that's why I'm asking for some more information - chances are you used a wrong word or are thinking about something else Quote Link to comment Share on other sites More sharing options...
acidglitter Posted August 19, 2008 Author Share Posted August 19, 2008 i read from here.. http://us2.php.net/function.file-exists Note: The results of this function are cached. See clearstatcache() for more details. Quote Link to comment Share on other sites More sharing options...
Wuhtzu Posted August 20, 2008 Share Posted August 20, 2008 Now I see - you actually had a point / valid question and we didn't understand It is actually a good question, I've been doing some research and been unable to come up with an answer within 10 minutes. Anyone who knows about this or have done some experimenting? E.g. constantly changing a file and check when the return value of file_exists() updates... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.