Revert "Removes all cache files after package uninstallation"
authorAlexander Ebert <ebert@woltlab.com>
Mon, 15 Oct 2012 12:40:24 +0000 (14:40 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 15 Oct 2012 12:40:24 +0000 (14:40 +0200)
This reverts commit f9e2db906968bbf856af37be3c2ed75e51647e8f.

wcfsetup/install/files/lib/system/application/IApplication.class.php
wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php

index 42586cbfbfffc330af1a864befb3e849e928899d..bdb45c2e3204195b39707c1a3e47da0db1eb2abd 100644 (file)
@@ -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();
 }
index 8ccbd17a390dab2b46489861aacb8ca81669b23a..af46a2bf7221fa39e9e75f1baceb1f8451cf0588 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 namespace wcf\system\package;
-use wcf\system\application\ApplicationHandler;
-
 use wcf\data\option\OptionEditor;
 use wcf\data\package\installation\queue\PackageInstallationQueue;
 use wcf\data\package\Package;
@@ -69,21 +67,6 @@ class PackageUninstallationDispatcher extends PackageInstallationDispatcher {
                // update options.inc.php if uninstallation is completed
                if ($node == '') {
                        OptionEditor::resetCache();
-                       
-                       // force removal of all cache files
-                       if (PACKAGE_ID) {
-                               // WCF cache
-                               CacheHandler::getInstance()->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