diff options
author | Ovah <dreadkiller@gmx.de> | 2020-07-28 21:52:03 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-24 13:15:42 +0100 |
commit | 9c38dc2367e1bb59a5a4ad7a52abd522a035ae5d (patch) | |
tree | 333f7e9f21f11d8f0bfe9dfba50cf30e3bd7d44a /src | |
parent | d2cde75ab2a3b669ae23fde2338527684626f403 (diff) |
Core/World: added startup log outputs for query cache initialization for detailed information.
* the console will now throw a log when the feature is disabled
* additionally the console will now print how long it took to initialize
(cherry picked from commit 210f552ac56979430f1349006c1945b29883a2bc)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 6c0684f5c71..62ae41babdd 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -10752,9 +10752,14 @@ void ObjectMgr::LoadCreatureQuestItems() void ObjectMgr::InitializeQueriesData(QueryDataGroup mask) { + uint32 oldMSTime = getMSTime(); + // cache disabled if (!sWorld->getBoolConfig(CONFIG_CACHE_DATA_QUERIES)) + { + TC_LOG_INFO("server.loading", ">> Query data caching is disabled. Skipped initialization."); return; + } // Initialize Query data for creatures if (mask & QUERY_DATA_CREATURES) @@ -10775,6 +10780,8 @@ void ObjectMgr::InitializeQueriesData(QueryDataGroup mask) if (mask & QUERY_DATA_POIS) for (auto& poiPair : _questPOIStore) poiPair.second.InitializeQueryData(); + + TC_LOG_INFO("server.loading", ">> Initialized query cache data in %u ms", GetMSTimeDiffToNow(oldMSTime)); } void QuestPOIData::InitializeQueryData() |