Added missing user storage reset
authorMarcel Werk <burntime@woltlab.com>
Mon, 3 Jun 2013 11:19:48 +0000 (13:19 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 3 Jun 2013 11:19:48 +0000 (13:19 +0200)
wcfsetup/install/files/lib/data/user/rank/UserRankEditor.class.php

index d9b563a5b567b20886c7d565049c9472f282511c..5b0e307d2161cf14512b00b29fff6861d2ea9f11 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 namespace wcf\data\user\rank;
 use wcf\data\DatabaseObjectEditor;
+use wcf\data\IEditableCachedObject;
+use wcf\system\user\storage\UserStorageHandler;
 
 /**
  * Provides functions to edit user ranks.
@@ -12,9 +14,16 @@ use wcf\data\DatabaseObjectEditor;
  * @subpackage data.user.rank
  * @category   Community Framework
  */
-class UserRankEditor extends DatabaseObjectEditor {
+class UserRankEditor extends DatabaseObjectEditor implements IEditableCachedObject {
        /**
         * @see wcf\data\DatabaseObjectDecorator::$baseClass
         */
        protected static $baseClass = 'wcf\data\user\rank\UserRank';
+       
+       /**
+        * @see wcf\data\IEditableCachedObject::resetCache
+        */
+       public static function resetCache() {
+               UserStorageHandler::getInstance()->resetAll('userRank');
+       }
 }