aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Wrapper
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2023-10-19 19:27:00 +0200
committerRobin Appelman <robin@icewind.nl>2023-10-19 19:27:00 +0200
commit460344336e283d6ebca4066a3a876ca4843600bd (patch)
treeddf4dff5ad7713da4449bdd1db93a86bc7bfe28a /lib/private/Files/Storage/Wrapper
parentbb912ad47c34e99095477eec9943fe0ec21680b8 (diff)
downloadnextcloud-server-460344336e283d6ebca4066a3a876ca4843600bd.tar.gz
nextcloud-server-460344336e283d6ebca4066a3a876ca4843600bd.zip
optimize cache jail creation
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Storage/Wrapper')
-rw-r--r--lib/private/Files/Storage/Wrapper/Jail.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php
index 1921ac27848..592acd418ec 100644
--- a/lib/private/Files/Storage/Wrapper/Jail.php
+++ b/lib/private/Files/Storage/Wrapper/Jail.php
@@ -396,10 +396,7 @@ class Jail extends Wrapper {
* @return \OC\Files\Cache\Cache
*/
public function getCache($path = '', $storage = null) {
- if (!$storage) {
- $storage = $this->getWrapperStorage();
- }
- $sourceCache = $this->getWrapperStorage()->getCache($this->getUnjailedPath($path), $storage);
+ $sourceCache = $this->getWrapperStorage()->getCache($this->getUnjailedPath($path));
return new CacheJail($sourceCache, $this->rootPath);
}