<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 19 Jun 2013 07:16:02 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[XpertDeveloper.com: PHP clearstatecache() Explained]]></title>
      <guid>http://www.phpdeveloper.org/news/16892</guid>
      <link>http://www.phpdeveloper.org/news/16892</link>
      <description><![CDATA[<p>
XPertDeveloper.com has a <a href="http://www.xpertdeveloper.com/2011/09/php-clearstatecache/">quick new post</a> looking at a function that might be overlooked until it suddenly becomes just what you need - <a href="http://php.net/clearstatecache">clearstatecache</a> for clearing file state information in the current script.
</p>
<blockquote>
For the functions like is_file(), file_exists(), etc PHP caches the result of this function for each file for faster performance if function called again. But in some cases you want to clear this cached information, for the task like getting the information of the same file multiple times in same page.
</blockquote>
<p>
Other methods this cache effects include <a href="http://php.net/stat">stat</a>, <a href="http://php.net/file_exists">file_exists</a>, <a href="http://php.net/is_file">is_file</a> and more. If the state of a file is changed during the course of the script - say it's deleted manually, not by PHP, your script may not recognize that. By calling <a href="http://php.net/clearstatecache">clearstatecache</a>, you refresh this cache and make it possible to see the latest file system info.
</p>]]></description>
      <pubDate>Thu, 22 Sep 2011 09:21:40 -0500</pubDate>
    </item>
  </channel>
</rss>
