From: Tim Düsterhus Date: Thu, 13 Sep 2012 21:03:59 +0000 (+0200) Subject: ObjectTypeEditor is now an IEditableCachedObject X-Git-Tag: 2.0.0_Beta_1~894^2~9 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=efedeb7294d51fca42a22c3b9c65b23f58982230;p=GitHub%2FWoltLab%2FWCF.git ObjectTypeEditor is now an IEditableCachedObject --- diff --git a/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php b/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php index 2a3cf73e5d..b3b716a242 100644 --- a/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php +++ b/wcfsetup/install/files/lib/data/object/type/ObjectTypeEditor.class.php @@ -12,9 +12,17 @@ use wcf\data\DatabaseObjectEditor; * @subpackage data.object.type * @category Community Framework */ -class ObjectTypeEditor extends DatabaseObjectEditor { +class ObjectTypeEditor extends DatabaseObjectEditor implements IEditableCachedObject { /** * @see wcf\data\DatabaseObjectDecorator::$baseClass */ protected static $baseClass = 'wcf\data\object\type\ObjectType'; + + /** + * @see wcf\data\IEditableCachedObject::resetCache() + */ + public static function resetCache() { + // clear cache + CacheHandler::getInstance()->clear(WCF_DIR.'cache', 'cache.objectType*.php'); + } }