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

1
2
3
4
protected function getUncachedMTime($directory) {
  clearstatcache(TRUE, $directory);
  return filemtime($directory);
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.