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)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user