From: Alexander Ebert Date: Mon, 15 Oct 2012 12:40:24 +0000 (+0200) Subject: Revert "Removes all cache files after package uninstallation" X-Git-Tag: 2.0.0_Beta_1~861^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dd0e0e3c1883207b9c132ea5d7c90a893fbbbbb6;p=GitHub%2FWoltLab%2FWCF.git Revert "Removes all cache files after package uninstallation" This reverts commit f9e2db906968bbf856af37be3c2ed75e51647e8f. --- diff --git a/wcfsetup/install/files/lib/system/application/IApplication.class.php b/wcfsetup/install/files/lib/system/application/IApplication.class.php index 42586cbfbf..bdb45c2e32 100644 --- a/wcfsetup/install/files/lib/system/application/IApplication.class.php +++ b/wcfsetup/install/files/lib/system/application/IApplication.class.php @@ -20,9 +20,4 @@ interface IApplication { * @return mixed */ public static function __callStatic($method, array $arguments); - - /** - * Forces a reset of all application's cache files. - */ - public function resetCache(); } diff --git a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php index 8ccbd17a39..af46a2bf72 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php @@ -1,7 +1,5 @@ clear(WCF_DIR.'cache/', 'cache.*.php'); - - // remove application's cache - if (PACKAGE_ID != 1) { - ApplicationHandler::getInstance()->getPrimaryApplication()->resetCache(); - - foreach (ApplicationHandler::getInstance()->getDependentApplications() as $application) { - $application->resetCache(); - } - } - } } // return next node