mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-22 02:00:40 +00:00
Adding method to clear the room-cache.
This commit is contained in:
parent
96e835e738
commit
e5455475f7
@ -45,6 +45,14 @@ class ChatRoom extends \wcf\data\DatabaseObject implements \wcf\system\request\I
|
||||
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…
x
Reference in New Issue
Block a user