aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/OC_Helper.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2023-02-16 08:43:14 +0100
committerJulius Härtl (Rebase PR Action) <github@juliushaertl.de>2023-03-06 22:46:07 +0000
commit3287eddbbc4465ee5fcb39016b3ad0ad27959ea6 (patch)
tree1c60f50335955c1a19a245a982ce10e9e80f1b48 /lib/private/legacy/OC_Helper.php
parentb59cf4c1d49835f9a6eedfdfda2b96f40c6a9ba6 (diff)
downloadnextcloud-server-3287eddbbc4465ee5fcb39016b3ad0ad27959ea6.tar.gz
nextcloud-server-3287eddbbc4465ee5fcb39016b3ad0ad27959ea6.zip
fix: Recalculate storage statistics on updating the quota
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/legacy/OC_Helper.php')
-rw-r--r--lib/private/legacy/OC_Helper.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/legacy/OC_Helper.php b/lib/private/legacy/OC_Helper.php
index c2036c7b863..0004edf5b8f 100644
--- a/lib/private/legacy/OC_Helper.php
+++ b/lib/private/legacy/OC_Helper.php
@@ -620,6 +620,15 @@ class OC_Helper {
];
}
+ public static function clearStorageInfo(string $absolutePath): void {
+ /** @var ICacheFactory $cacheFactory */
+ $cacheFactory = \OC::$server->get(ICacheFactory::class);
+ $memcache = $cacheFactory->createLocal('storage_info');
+ $cacheKey = Filesystem::normalizePath($absolutePath) . '::';
+ $memcache->remove($cacheKey . 'include');
+ $memcache->remove($cacheKey . 'exclude');
+ }
+
/**
* Returns whether the config file is set manually to read-only
* @return bool