mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
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 # Conflicts: # src/server/game/Globals/ObjectMgr.cpp
This commit is contained in:
@@ -10124,9 +10124,14 @@ uint32 ObjectMgr::GetGameObjectTypeByEntry(uint32 entry) const
|
||||
|
||||
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)
|
||||
@@ -10147,6 +10152,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 QuestPOIWrapper::InitializeQueryData()
|
||||
|
||||
Reference in New Issue
Block a user