diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-02-16 08:43:14 +0100 |
---|---|---|
committer | Julius Härtl (Rebase PR Action) <github@juliushaertl.de> | 2023-03-06 22:46:07 +0000 |
commit | 3287eddbbc4465ee5fcb39016b3ad0ad27959ea6 (patch) | |
tree | 1c60f50335955c1a19a245a982ce10e9e80f1b48 /lib/private/legacy/OC_Helper.php | |
parent | b59cf4c1d49835f9a6eedfdfda2b96f40c6a9ba6 (diff) | |
download | nextcloud-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.php | 9 |
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 |