protected function MTimeProtectedFastFileStorage::getUncachedMTime

protected MTimeProtectedFastFileStorage::getUncachedMTime($directory)

Clears PHP's stat cache and returns the directory's mtime.

File

core/lib/Drupal/Component/PhpStorage/MTimeProtectedFastFileStorage.php, line 211

Class

MTimeProtectedFastFileStorage
Stores PHP code in files with securely hashed names.

Namespace

Drupal\Component\PhpStorage

Code

protected function getUncachedMTime($directory) {
  clearstatcache(TRUE, $directory);
  return filemtime($directory);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!PhpStorage!MTimeProtectedFastFileStorage.php/function/MTimeProtectedFastFileStorage::getUncachedMTime/8.1.x