0

Why even if I clear cache for that file and modify it (by adding a space) filemtime stays the same?

clearstatcache(true, $file);
// or clearstatcache()

return date("U", filemtime($file));

It drives me crazy. I've already tried turning off caching in .htaccess.

Files I hit with it are ($file):

string '../private_data/Pages/metaData.xml' (length=34)
string 'Data/StaticRoots.php' (length=20)
string '../private_data/CountryISO/CountryInfo.xml' (length=42)
string 'Data/CountryInfo.php' (length=20)
string '../private_data/Lang/Lang_PL.xml' (length=32)
string 'Data/Lang_PL.php' (length=16)
string '/' (length=1)
Cyclonecode
  • 29,115
  • 11
  • 72
  • 93
Szymon Toda
  • 4,454
  • 11
  • 43
  • 62
  • 1
    What's the full code, including the modification? – Jon Mar 20 '14 at 23:40
  • Other missing information that might be a clue: is `$file` an ordinary file path, or some kind of URL or wrapper specification? Are you running the code on Linux, Windows, or MacOS? Is the problem specific to this file, or part of the filesystem, or can you reproduce it with any file? – IMSoP Mar 20 '14 at 23:51
  • @IMSoP Ive provided `$file` paths – Szymon Toda Mar 21 '14 at 18:03

0 Answers0