diff options
| author | xinef1 <w.szyszko2@gmail.com> | 2017-02-20 20:27:08 +0100 |
|---|---|---|
| committer | ariel- <ariel-@users.noreply.github.com> | 2017-02-20 16:27:08 -0300 |
| commit | ae9d01a3245c59a8a8d50516a79b79250337450d (patch) | |
| tree | d8cb2e521d7e15c130d21aad9d2225ba82b7998d /src/server/scripts/Commands | |
| parent | 4eae29d421e1d7a28aaa50d401cbbf09c50bd476 (diff) | |
Store cached static data queries, instead of building them in every query opcode (#18637)
- Added config option to enable / disable cache
- Reinitialize data on reload command use
- Always send WDB fields in item query
Diffstat (limited to 'src/server/scripts/Commands')
| -rw-r--r-- | src/server/scripts/Commands/cs_reload.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/scripts/Commands/cs_reload.cpp b/src/server/scripts/Commands/cs_reload.cpp index 14af467ecf5..ee40877e721 100644 --- a/src/server/scripts/Commands/cs_reload.cpp +++ b/src/server/scripts/Commands/cs_reload.cpp @@ -447,6 +447,7 @@ public: sObjectMgr->CheckCreatureTemplate(cInfo); } + sObjectMgr->InitializeQueriesData(QUERY_DATA_CREATURES); handler->SendGlobalGMSysMessage("Creature template reloaded."); return true; } @@ -521,6 +522,7 @@ public: { TC_LOG_INFO("misc", "Re-Loading Quest Templates..."); sObjectMgr->LoadQuests(); + sObjectMgr->InitializeQueriesData(QUERY_DATA_QUESTS); handler->SendGlobalGMSysMessage("DB table `quest_template` (quest definitions) reloaded."); /// dependent also from `gameobject` but this table not reloaded anyway @@ -700,6 +702,7 @@ public: { TC_LOG_INFO("misc", "Re-Loading Quest POI ..." ); sObjectMgr->LoadQuestPOI(); + sObjectMgr->InitializeQueriesData(QUERY_DATA_POIS); handler->SendGlobalGMSysMessage("DB Table `quest_poi` and `quest_poi_points` reloaded."); return true; } |
