Add missing cache reset after page changes
authorMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2015 19:48:08 +0000 (20:48 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 21 Dec 2015 19:48:08 +0000 (20:48 +0100)
wcfsetup/install/files/lib/data/page/PageEditor.class.php

index 5bba637b86f051e7b478ce3a9089d16aaa97faa7..6f4ea91b2446181f595ae10f4386300bc15d6484 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 namespace wcf\data\page;
 use wcf\data\DatabaseObjectEditor;
+use wcf\data\IEditableCachedObject;
+use wcf\system\cache\builder\RoutingCacheBuilder;
 
 /**
  * Provides functions to edit pages.
@@ -13,9 +15,16 @@ use wcf\data\DatabaseObjectEditor;
  * @category   Community Framework
  * @since      2.2
  */
-class PageEditor extends DatabaseObjectEditor {
+class PageEditor extends DatabaseObjectEditor implements IEditableCachedObject {
        /**
         * @inheritDoc
         */
        protected static $baseClass = Page::class;
+       
+       /**
+        * @inheritDoc
+        */
+       public static function resetCache() {
+               RoutingCacheBuilder::getInstance()->reset();
+       }
 }