diff --git a/src/cqbot/utils/CQUtil.php b/src/cqbot/utils/CQUtil.php index 02d602c2..bd817bc5 100755 --- a/src/cqbot/utils/CQUtil.php +++ b/src/cqbot/utils/CQUtil.php @@ -234,6 +234,10 @@ class CQUtil static function reload() { Console::info("Reloading server"); self::saveAllFiles(); + Cache::$data = []; + foreach(ConnectionManager::getAll() as $v){ + $v->close(); + } Cache::$server->reload(); }