aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/AppConfig.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2022-11-15 11:08:20 -0100
committerMaxence Lange <maxence@artificial-owl.com>2022-11-15 11:08:20 -0100
commit6964751ec6e3297d7a61c848cb53689c55778ba0 (patch)
tree44e7d8d99a8db73aba9d16e1a5c84b7f5f8adbd2 /lib/private/AppConfig.php
parenta57762576728d4bea0ed709ad10fd8e2666aaf28 (diff)
downloadnextcloud-server-6964751ec6e3297d7a61c848cb53689c55778ba0.tar.gz
nextcloud-server-6964751ec6e3297d7a61c848cb53689c55778ba0.zip
restoring clearCachedConfig()
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private/AppConfig.php')
-rw-r--r--lib/private/AppConfig.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php
index 708b31b3136..79c27e9d320 100644
--- a/lib/private/AppConfig.php
+++ b/lib/private/AppConfig.php
@@ -427,4 +427,13 @@ class AppConfig implements IAppConfig {
$this->configLoaded = true;
}
+
+
+ /**
+ * Clear all the cached app config values
+ * New cache will be generated next time a config value is retrieved
+ */
+ public function clearCachedConfig(): void {
+ $this->configLoaded = false;
+ }
}