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:
parent
96e835e738
commit
e5455475f7
@ -45,6 +45,14 @@ public static function getCache() {
|
|||||||
return self::$cache;
|
return self::$cache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clears the room cache.
|
||||||
|
*/
|
||||||
|
public static function clearCache() {
|
||||||
|
self::getCache();
|
||||||
|
CacheHandler::getInstance()->clearResource('chatrooms');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see \wcf\data\chat\room\ChatRoom::getTitle();
|
* @see \wcf\data\chat\room\ChatRoom::getTitle();
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user