Php Cache Error
<p>I have a problem with PHP cache. My english level is low, that's why try to understand please.</p>

<p>I sent a query to the database, and created a cache file. But cache file is not read and when cache file time ended, the cache file is not deleted.</p>

<p>How can I solve? and also, what is the difference between cache file and htaccess caching?</p>