From: Alexander Ebert Date: Wed, 18 Oct 2017 10:12:34 +0000 (+0200) Subject: Force cache reset after PIP import X-Git-Tag: 3.1.0_Beta_2~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e14186654da1401dd6788a0a3f6f88e2aef6d523;p=GitHub%2FWoltLab%2FWCF.git Force cache reset after PIP import --- diff --git a/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPluginAction.class.php b/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPluginAction.class.php index 7b19fca0fe..028a3683ea 100644 --- a/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPluginAction.class.php +++ b/wcfsetup/install/files/lib/data/package/installation/plugin/PackageInstallationPluginAction.class.php @@ -13,6 +13,7 @@ use wcf\system\language\LanguageFactory; use wcf\system\package\plugin\OptionPackageInstallationPlugin; use wcf\system\package\SplitNodeException; use wcf\system\search\SearchIndexManager; +use wcf\system\style\StyleHandler; use wcf\system\version\VersionTracker; use wcf\system\WCF; @@ -123,9 +124,22 @@ class PackageInstallationPluginAction extends AbstractDatabaseObjectAction { OptionEditor::resetCache(); } - if ($this->packageInstallationPlugin->pluginName === 'language') { - LanguageFactory::getInstance()->clearCache(); - LanguageFactory::getInstance()->deleteLanguageCache(); + switch ($this->packageInstallationPlugin->pluginName) { + case 'file': + StyleHandler::resetStylesheets(false); + break; + + case 'language': + LanguageFactory::getInstance()->clearCache(); + LanguageFactory::getInstance()->deleteLanguageCache(); + break; + + case 'acpTemplate': + case 'template': + case 'templateListener': + // resets the compiled templates + LanguageFactory::getInstance()->deleteLanguageCache(); + break; } return [