Adds some newlines to CacheClearAction
authorMatthias Schmidt <gravatronics@live.com>
Thu, 12 Apr 2012 20:36:54 +0000 (22:36 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 12 Apr 2012 20:36:54 +0000 (22:36 +0200)
wcfsetup/install/files/lib/acp/action/CacheClearAction.class.php

index 51b5ab252a0c99304c4ce3427a129064cc66fb31..d5860305ea76bded2cd310da5893d31bb917ed84 100644 (file)
@@ -26,12 +26,14 @@ class CacheClearAction extends AbstractAction {
         * @see wcf\action\AbstractAction::$neededPermissions
         */
        public $neededPermissions = array('admin.system.canViewLog');
+       
        /**
         * @see wcf\action\IAction::execute()
         */
        public function execute() {
                parent::execute();
-               // this will clean up the templates as well
+               
+               // delete templates as well
                LanguageFactory::getInstance()->deleteLanguageCache();
                
                $conditions = new PreparedStatementConditionBuilder();
@@ -49,9 +51,9 @@ class CacheClearAction extends AbstractAction {
                        try {
                                CacheHandler::getInstance()->clear($packageDir.'cache', '*.php');
                        }
-                       catch (SystemException $e) {
-                       }
+                       catch (SystemException $e) { }
                }
+               
                $this->executed();
                HeaderUtil::redirect(LinkHandler::getInstance()->getLink('CacheList'));
                exit;