From dd0e0e3c1883207b9c132ea5d7c90a893fbbbbb6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 15 Oct 2012 14:40:24 +0200 Subject: [PATCH] Revert "Removes all cache files after package uninstallation" This reverts commit f9e2db906968bbf856af37be3c2ed75e51647e8f. --- .../system/application/IApplication.class.php | 5 ----- .../PackageUninstallationDispatcher.class.php | 17 ----------------- 2 files changed, 22 deletions(-) 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 -- 2.20.1