diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-08-16 04:54:55 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-08-16 04:54:55 +0300 |
commit | 1b7e84eb54c75f752f01d1725677a4c6ab21335e (patch) | |
tree | b474cc7e15d6a927cc81a0125520d9e45c557c69 /core/Config.php | |
parent | f3b75175fa5a64ac2b3c1eb9f52bb61025034385 (diff) |
delete config cache only after the cache was written (#14754)
Diffstat (limited to 'core/Config.php')
-rw-r--r-- | core/Config.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/Config.php b/core/Config.php index 906bbb1652..7a24ca4038 100644 --- a/core/Config.php +++ b/core/Config.php @@ -11,6 +11,8 @@ namespace Piwik; use Exception; use Piwik\Application\Kernel\GlobalSettingsProvider; +use Piwik\Config\Cache; +use Piwik\Config\IniFileChain; use Piwik\Container\StaticContainer; use Piwik\Exception\MissingFilePermissionException; use Piwik\ProfessionalServices\Advertising; @@ -431,6 +433,8 @@ class Config throw $this->getConfigNotWritableException(); } + $this->settings->getIniFileChain()->deleteConfigCache(); + /** * Triggered when a INI config file is changed on disk. * |