aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppConfig.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-10-15 15:59:21 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-10-16 13:28:00 +0200
commitcce716f9f3ed53874d2f88f187ec77c442d0a609 (patch)
tree61daf8fbc3cd11b212b62ea88310f9ad1ace1a3a /lib/private/AppConfig.php
parent2456969b4121196f7578518a8f1bf5314bb21fc9 (diff)
downloadnextcloud-server-cce716f9f3ed53874d2f88f187ec77c442d0a609.tar.gz
nextcloud-server-cce716f9f3ed53874d2f88f187ec77c442d0a609.zip
Clear cached app config while waiting for the SCSSCache to finish processing the file
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/AppConfig.php')
-rw-r--r--lib/private/AppConfig.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php
index b35bc4070dd..d3b64449879 100644
--- a/lib/private/AppConfig.php
+++ b/lib/private/AppConfig.php
@@ -344,4 +344,14 @@ class AppConfig implements IAppConfig {
$this->configLoaded = true;
}
+
+ /**
+ * Clear all the cached app config values
+ *
+ * WARNING: do not use this - this is only for usage with the SCSSCacher to
+ * clear the memory cache of the app config
+ */
+ public function clearCachedConfig() {
+ $this->configLoaded = false;
+ }
}