Reloads application cache within setup
authorAlexander Ebert <ebert@woltlab.com>
Fri, 25 Jan 2013 14:57:59 +0000 (15:57 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 25 Jan 2013 14:57:59 +0000 (15:57 +0100)
wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php

index 045922725e58725d7344aac466fe160d470debfd..e51841c79c5056bc0c4728f1e20cd0159553016a 100644 (file)
@@ -1,5 +1,7 @@
 <?php
 namespace wcf\system\application;
+use wcf\data\application\ApplicationEditor;
+
 use wcf\data\application\ApplicationAction;
 use wcf\data\application\ApplicationList;
 use wcf\system\cache\CacheHandler;
@@ -166,6 +168,16 @@ class ApplicationHandler extends SingletonFactory {
                return false;
        }
        
+       /**
+        * Reloads cache during setup.
+        *
+        * @todo        Caches should be disabled within setup, this is just a work-around!
+        */
+       public function reloadCache() {
+               ApplicationEditor::resetCache();
+               $this->init();
+       }
+       
        /**
         * Rebuilds cookie domain/path for all applications.
         */
index daff3c45a9ba18bb82fc3c6139d4286d8c7e6254..eaa305db6d3af9d23b7e0a14bd9590b890dade86 100644 (file)
@@ -310,6 +310,7 @@ class PackageInstallationDispatcher {
                                        'cookiePath' => $path,
                                        'packageID' => $package->packageID
                                ));
+                               ApplicationHandler::getInstance()->reloadCache();
                        }
                }