diff options
author | J0WI <J0WI@users.noreply.github.com> | 2020-07-03 22:44:31 +0200 |
---|---|---|
committer | J0WI <J0WI@users.noreply.github.com> | 2020-07-03 22:47:13 +0200 |
commit | 356bc50420d83254a622ccd1a5e6bc9a623c4427 (patch) | |
tree | 6d16c47a78f9bce9afd6843317bff05c613e31f7 | |
parent | ea08a019995c856f58516de1d2509f0e2d3c2907 (diff) | |
download | nextcloud-server-356bc50420d83254a622ccd1a5e6bc9a623c4427.tar.gz nextcloud-server-356bc50420d83254a622ccd1a5e6bc9a623c4427.zip |
Only clear the realpath cache
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
-rw-r--r-- | lib/private/Files/Storage/Local.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/Local.php b/lib/private/Files/Storage/Local.php index a8fa32f608e..6d350512b22 100644 --- a/lib/private/Files/Storage/Local.php +++ b/lib/private/Files/Storage/Local.php @@ -142,8 +142,8 @@ class Local extends \OC\Files\Storage\Common { } public function stat($path) { - clearstatcache(); $fullPath = $this->getSourcePath($path); + clearstatcache(true, $fullPath); $statResult = stat($fullPath); if (PHP_INT_SIZE === 4 && !$this->is_dir($path)) { $filesize = $this->filesize($path); @@ -158,7 +158,7 @@ class Local extends \OC\Files\Storage\Common { */ public function getMetaData($path) { $fullPath = $this->getSourcePath($path); - clearstatcache(); + clearstatcache(true, $fullPath); $stat = @stat($fullPath); if (!$stat) { return null; |