diff --git a/file/lib/data/chat/room/ChatRoom.class.php b/file/lib/data/chat/room/ChatRoom.class.php index a47b624..594e8ae 100644 --- a/file/lib/data/chat/room/ChatRoom.class.php +++ b/file/lib/data/chat/room/ChatRoom.class.php @@ -45,6 +45,14 @@ public static function getCache() { return self::$cache; } + /** + * Clears the room cache. + */ + public static function clearCache() { + self::getCache(); + CacheHandler::getInstance()->clearResource('chatrooms'); + } + /** * @see \wcf\data\chat\room\ChatRoom::getTitle(); */