Skip to content

Commit 2df2f7f

Browse files
Merge pull request #55761 from nextcloud/backport/55754/stable32
2 parents 9925ea5 + d84f146 commit 2df2f7f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/private/Files/Cache/Wrapper/CacheWrapper.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ protected function hasEncryptionWrapper(): bool {
5353
}
5454
}
5555

56+
protected function shouldEncrypt(string $targetPath): bool {
57+
$cache = $this->getCache();
58+
if ($cache instanceof Cache) {
59+
return $cache->shouldEncrypt($targetPath);
60+
} else {
61+
return false;
62+
}
63+
}
64+
5665
/**
5766
* Make it easy for wrappers to modify every returned cache entry
5867
*

0 commit comments

Comments
 (0)