Core/Cache: Implement QueryCache system

Ideas/Port From (https://github.com/TrinityCore/TrinityCore/commit/b4d30bb92cbfc8411d8d91b0f4f2981f2cecc148)
This commit is contained in:
hondacrx
2019-08-31 10:06:35 -04:00
parent 8797760d8a
commit 966c1fff33
13 changed files with 430 additions and 358 deletions
@@ -238,6 +238,7 @@ namespace Game.Chat
Global.ObjectMgr.CheckCreatureTemplate(cInfo);
}
Global.ObjectMgr.InitializeQueriesData(QueryDataGroup.Creatures);
handler.SendGlobalGMSysMessage("Creature template reloaded.");
return true;
}
@@ -607,6 +608,7 @@ namespace Game.Chat
{
Log.outInfo(LogFilter.Server, "Re-Loading Quest POI ...");
Global.ObjectMgr.LoadQuestPOI();
Global.ObjectMgr.InitializeQueriesData(QueryDataGroup.POIs);
handler.SendGlobalGMSysMessage("DB Table `quest_poi` and `quest_poi_points` reloaded.");
return true;
}
@@ -616,6 +618,7 @@ namespace Game.Chat
{
Log.outInfo(LogFilter.Server, "Re-Loading Quest Templates...");
Global.ObjectMgr.LoadQuests();
Global.ObjectMgr.InitializeQueriesData(QueryDataGroup.Quests);
handler.SendGlobalGMSysMessage("DB table `quest_template` (quest definitions) reloaded.");
// dependent also from `gameobject` but this table not reloaded anyway