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? Link to comment https://forums.phpfreaks.com/topic/120436-file_exists/ Share on other sites More sharing options...
Wuhtzu Posted August 19, 2008 Share Posted August 19, 2008 What do you mean? Link to comment https://forums.phpfreaks.com/topic/120436-file_exists/#findComment-620567 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. Link to comment https://forums.phpfreaks.com/topic/120436-file_exists/#findComment-620570 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 Link to comment https://forums.phpfreaks.com/topic/120436-file_exists/#findComment-620571 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. Link to comment https://forums.phpfreaks.com/topic/120436-file_exists/#findComment-620576 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... Link to comment https://forums.phpfreaks.com/topic/120436-file_exists/#findComment-621488 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.