Rebuild on startup working
Gets indexes rebuilding at startup, gets indexes rebuilding with published content which required some updates to the content service/repo to pass in a more robust filter when paging. Added more tasks to fix up more of the examine parts like the local storage sync which currently just throws exceptions.
This commit is contained in:
@@ -142,7 +142,11 @@ namespace Umbraco.Core
|
||||
{
|
||||
try
|
||||
{
|
||||
using (ProfilingLogger.DebugDuration<CoreBootManager>(string.Format("Executing {0} in ApplicationInitialized", x.GetType())))
|
||||
using (ProfilingLogger.DebugDuration<CoreBootManager>(
|
||||
$"Executing {x.GetType()} in ApplicationInitialized",
|
||||
$"Executed {x.GetType()} in ApplicationInitialized",
|
||||
//only log if more than 150ms
|
||||
150))
|
||||
{
|
||||
x.OnApplicationInitialized(UmbracoApplication, ApplicationContext);
|
||||
}
|
||||
@@ -274,7 +278,11 @@ namespace Umbraco.Core
|
||||
{
|
||||
try
|
||||
{
|
||||
using (ProfilingLogger.DebugDuration<CoreBootManager>(string.Format("Executing {0} in ApplicationStarting", x.GetType())))
|
||||
using (ProfilingLogger.DebugDuration<CoreBootManager>(
|
||||
$"Executing {x.GetType()} in ApplicationStarting",
|
||||
$"Executed {x.GetType()} in ApplicationStarting",
|
||||
//only log if more than 150ms
|
||||
150))
|
||||
{
|
||||
x.OnApplicationStarting(UmbracoApplication, ApplicationContext);
|
||||
}
|
||||
@@ -323,7 +331,11 @@ namespace Umbraco.Core
|
||||
{
|
||||
try
|
||||
{
|
||||
using (ProfilingLogger.DebugDuration<CoreBootManager>(string.Format("Executing {0} in ApplicationStarted", x.GetType())))
|
||||
using (ProfilingLogger.DebugDuration<CoreBootManager>(
|
||||
$"Executing {x.GetType()} in ApplicationStarted",
|
||||
$"Executed {x.GetType()} in ApplicationStarted",
|
||||
//only log if more than 150ms
|
||||
150))
|
||||
{
|
||||
x.OnApplicationStarted(UmbracoApplication, ApplicationContext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user