aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
authorOvah <dreadkiller@gmx.de>2020-07-28 21:52:03 +0200
committerGitHub <noreply@github.com>2020-07-28 21:52:03 +0200
commit210f552ac56979430f1349006c1945b29883a2bc (patch)
treee7f0728605db641ab3528a41533a663c91251091 /src/server/game/Globals/ObjectMgr.cpp
parent3ad05386c844438af0dda56bbb46fa665d870c5c (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
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 8be1053099f..52eca422e6c 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -10272,9 +10272,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)
@@ -10300,6 +10305,8 @@ void ObjectMgr::InitializeQueriesData(QueryDataGroup mask)
if (mask & QUERY_DATA_POIS)
for (auto& poiWrapperPair : _questPOIStore)
poiWrapperPair.second.InitializeQueryData();
+
+ TC_LOG_INFO("server.loading", ">> Initialized query cache data in %u ms", GetMSTimeDiffToNow(oldMSTime));
}
void QuestPOIWrapper::InitializeQueryData()