Resetting all caches once import has been completed
authorAlexander Ebert <ebert@woltlab.com>
Thu, 1 Aug 2013 16:06:30 +0000 (18:06 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 1 Aug 2013 16:06:30 +0000 (18:06 +0200)
wcfsetup/install/files/lib/system/importer/ImportHandler.class.php

index 4db00f2616bb91bb4328f4d6980884489a6782f3..c72910bc1b74b06335aebce2cff1bd75ab64ae2d 100644 (file)
@@ -1,5 +1,9 @@
 <?php
 namespace wcf\system\importer;
+use wcf\system\user\storage\UserStorageHandler;
+
+use wcf\system\cache\CacheHandler;
+
 use wcf\data\object\type\ObjectTypeCache;
 use wcf\system\exception\SystemException;
 use wcf\system\IAJAXInvokeAction;
@@ -123,6 +127,10 @@ class ImportHandler extends SingletonFactory implements IAJAXInvokeAction {
         */
        public function validateResetMapping() {
                WCF::getSession()->checkPermissions(array('admin.system.canImportData'));
+               
+               // reset caches
+               CacheHandler::getInstance()->flushAll();
+               UserStorageHandler::getInstance()->clear();
        }
        
        /**