Merge pull request #43131 from nextcloud/fix/files/cache-wrapper-no-partial-cache-entry-formatting

fix(files): Don't attempt to format a partial cache entry
This commit is contained in:
Christoph Wurst 2024-02-06 13:51:51 +01:00 committed by GitHub
commit 67a3ab48b5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -91,7 +91,7 @@ class CacheWrapper extends Cache {
*/
public function get($file) {
$result = $this->getCache()->get($file);
if ($result) {
if ($result instanceof ICacheEntry) {
$result = $this->formatCacheEntry($result);
}
return $result;