From: Alexander Ebert Date: Mon, 28 Oct 2013 14:35:02 +0000 (+0100) Subject: Properly resetting cache after application domain/path changing X-Git-Tag: 2.0.0_Beta_11~14^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=16c16ea33a4de8599df2aa9ce3804ae07fcf1f6a;p=GitHub%2FWoltLab%2FWCF.git Properly resetting cache after application domain/path changing --- diff --git a/wcfsetup/install/files/lib/acp/form/ApplicationEditForm.class.php b/wcfsetup/install/files/lib/acp/form/ApplicationEditForm.class.php index 5a0d7d4d65..f0f0f8714e 100644 --- a/wcfsetup/install/files/lib/acp/form/ApplicationEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/ApplicationEditForm.class.php @@ -8,7 +8,6 @@ use wcf\system\application\ApplicationHandler; use wcf\form\AbstractForm; use wcf\system\exception\IllegalLinkException; use wcf\system\exception\UserInputException; -use wcf\system\language\LanguageFactory; use wcf\system\Regex; use wcf\system\WCF; use wcf\util\FileUtil; @@ -203,9 +202,6 @@ class ApplicationEditForm extends AbstractForm { // re-calculate cookie settings ApplicationHandler::rebuild(); - // rebuild templates - LanguageFactory::getInstance()->deleteLanguageCache(); - // show success. WCF::getTPL()->assign(array( 'success' => true diff --git a/wcfsetup/install/files/lib/data/application/ApplicationAction.class.php b/wcfsetup/install/files/lib/data/application/ApplicationAction.class.php index 613f8248c8..a6f6ab0ad6 100644 --- a/wcfsetup/install/files/lib/data/application/ApplicationAction.class.php +++ b/wcfsetup/install/files/lib/data/application/ApplicationAction.class.php @@ -1,8 +1,10 @@ commitTransaction(); + + // rebuild templates + LanguageFactory::getInstance()->deleteLanguageCache(); + + // reset application cache + ApplicationCacheBuilder::getInstance()->reset(); } /**