From: Matthias Schmidt Date: Sat, 5 Aug 2017 04:52:46 +0000 (+0200) Subject: Reset option cache after invoking option PIP in developer tools X-Git-Tag: 3.1.0_Alpha_1~106 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=db8ace122223cab2471f5cf78e85c9dc8f46263f;p=GitHub%2FWoltLab%2FWCF.git Reset option cache after invoking option PIP in developer tools See #2331 --- 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 71a6bed182..4d9323412a 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 @@ -2,6 +2,7 @@ namespace wcf\data\package\installation\plugin; use wcf\data\devtools\project\DevtoolsProject; use wcf\data\AbstractDatabaseObjectAction; +use wcf\data\option\OptionEditor; use wcf\system\cache\CacheHandler; use wcf\system\devtools\pip\DevtoolsPackageInstallationDispatcher; use wcf\system\devtools\pip\DevtoolsPip; @@ -9,6 +10,7 @@ use wcf\system\devtools\pip\IIdempotentPackageInstallationPlugin; use wcf\system\exception\PermissionDeniedException; use wcf\system\exception\UserInputException; use wcf\system\language\LanguageFactory; +use wcf\system\package\plugin\OptionPackageInstallationPlugin; use wcf\system\package\SplitNodeException; use wcf\system\search\SearchIndexManager; use wcf\system\version\VersionTracker; @@ -117,6 +119,10 @@ class PackageInstallationPluginAction extends AbstractDatabaseObjectAction { CacheHandler::getInstance()->flushAll(); + if ($pip instanceof OptionPackageInstallationPlugin) { + OptionEditor::resetCache(); + } + if ($this->packageInstallationPlugin->pluginName === 'language') { LanguageFactory::getInstance()->clearCache(); LanguageFactory::getInstance()->deleteLanguageCache();