1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Adding method to clear the room-cache.

This commit is contained in:
Tim Düsterhus 2011-11-27 20:15:22 +01:00
parent 96e835e738
commit e5455475f7

View File

@ -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();
*/