diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2025-04-07 10:17:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-07 10:17:02 +0200 |
commit | 1ef94153b8bab1982e1d8befa2f3855646fe8008 (patch) | |
tree | 9889b0bcc6910bc847c71812dad085dad4af001a | |
parent | a42563f9ed0ae8d7cf1687e240843e8208046f6f (diff) | |
parent | 3a09acebd23c0f59eeb3b08c358d6992029f609c (diff) | |
download | nextcloud-server-1ef94153b8bab1982e1d8befa2f3855646fe8008.tar.gz nextcloud-server-1ef94153b8bab1982e1d8befa2f3855646fe8008.zip |
Merge pull request #51942 from nextcloud/fix/require-update-if-mtime-is-null
fix(cache): always require updates if mtime is null
-rw-r--r-- | lib/private/Files/Cache/Watcher.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Cache/Watcher.php b/lib/private/Files/Cache/Watcher.php index b6c69dd7330..f1de5d3cfb8 100644 --- a/lib/private/Files/Cache/Watcher.php +++ b/lib/private/Files/Cache/Watcher.php @@ -118,7 +118,7 @@ class Watcher implements IWatcher { public function needsUpdate($path, $cachedData) { if ($this->watchPolicy === self::CHECK_ALWAYS or ($this->watchPolicy === self::CHECK_ONCE and !in_array($path, $this->checkedPaths))) { $this->checkedPaths[] = $path; - return $this->storage->hasUpdated($path, $cachedData['storage_mtime']); + return $cachedData['storage_mtime'] === null || $this->storage->hasUpdated($path, $cachedData['storage_mtime']); } return false; } |