mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2024-10-31 14:10: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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the room cache.
|
||||
*/
|
||||
public static function clearCache() {
|
||||
self::getCache();
|
||||
CacheHandler::getInstance()->clearResource('chatrooms');
|
||||
}
|
||||
|
||||
/**
|
||||
* @see \wcf\data\chat\room\ChatRoom::getTitle();
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user