'menuID' => $this->menuID,
'parentItemID' => $this->parentItemID,
'showOrder' => $this->showOrder,
- 'identifier' => StringUtil::getRandomID()
+ 'identifier' => StringUtil::getRandomID(),
+ 'packageID' => 1
])]);
$this->objectAction->executeAction();
<?php
namespace wcf\data\menu\item;
use wcf\data\DatabaseObjectEditor;
+use wcf\data\IEditableCachedObject;
+use wcf\system\cache\builder\MenuCacheBuilder;
use wcf\system\language\LanguageFactory;
use wcf\system\WCF;
* @category Community Framework
* @since 2.2
*/
-class MenuItemEditor extends DatabaseObjectEditor {
+class MenuItemEditor extends DatabaseObjectEditor implements IEditableCachedObject {
/**
* @inheritDoc
*/
return $menuItem;
}
+
+ /**
+ * @inheritDoc
+ */
+ public static function resetCache() {
+ MenuCacheBuilder::getInstance()->reset();
+ }
}