Adds missing package update cache reset
authorMatthias Schmidt <gravatronics@live.com>
Sat, 21 Dec 2013 20:13:13 +0000 (21:13 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 21 Dec 2013 20:13:13 +0000 (21:13 +0100)
wcfsetup/install/files/lib/data/package/update/server/PackageUpdateServerEditor.class.php

index 59192eb2818120e2e724c74139d6a38f66065fa3..98f21cf912e4451e80819a4dccec38f4251d1dce 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 namespace wcf\data\package\update\server;
 use wcf\data\DatabaseObjectEditor;
+use wcf\data\IEditableCachedObject;
+use wcf\system\cache\builder\PackageUpdateCacheBuilder;
 
 /**
  * Provides functions to edit package update servers.
@@ -12,9 +14,16 @@ use wcf\data\DatabaseObjectEditor;
  * @subpackage data.package.update.server
  * @category   Community Framework
  */
-class PackageUpdateServerEditor extends DatabaseObjectEditor {
+class PackageUpdateServerEditor extends DatabaseObjectEditor implements IEditableCachedObject {
        /**
         * @see \wcf\data\DatabaseObjectDecorator::$baseClass
         */
        protected static $baseClass = 'wcf\data\package\update\server\PackageUpdateServer';
+       
+       /**
+        * @see \wcf\data\IEditableCachedObject::resetCache()
+        */
+       public static function resetCache() {
+               PackageUpdateCacheBuilder::getInstance()->reset();
+       }
 }