Merge branch 'dev-v7' into 7.3.0
Conflicts: src/Umbraco.Tests/Scheduling/BackgroundTaskRunnerTests.cs src/Umbraco.Web/PublishedCache/XmlPublishedCache/XmlCacheFilePersister.cs src/Umbraco.Web/Scheduling/LogScrubber.cs src/Umbraco.Web/Umbraco.Web.csproj src/Umbraco.Web/umbraco.presentation/content.cs
This commit is contained in:
@@ -2,6 +2,7 @@ using System;
|
||||
using Umbraco.Core.Logging;
|
||||
using Umbraco.Core.Models;
|
||||
using Umbraco.Core;
|
||||
using Umbraco.Core.Configuration;
|
||||
|
||||
namespace Umbraco.Web.Routing
|
||||
{
|
||||
@@ -20,6 +21,9 @@ namespace Umbraco.Web.Routing
|
||||
/// <returns>A value indicating whether an Umbraco document was found and assigned.</returns>
|
||||
public bool TryFindContent(PublishedContentRequest docRequest)
|
||||
{
|
||||
if (UmbracoConfig.For.UmbracoSettings().WebRouting.DisableFindContentByIdPath)
|
||||
return false;
|
||||
|
||||
IPublishedContent node = null;
|
||||
var path = docRequest.Uri.GetAbsolutePathDecoded();
|
||||
|
||||
|
||||
@@ -51,7 +51,6 @@ namespace Umbraco.Web.Scheduling
|
||||
|
||||
}
|
||||
|
||||
// scrubbing interval, in milliseconds
|
||||
public static int GetLogScrubbingInterval(IUmbracoSettingsSection settings)
|
||||
{
|
||||
var interval = 4 * 60 * 60 * 1000; // 4 hours, in milliseconds
|
||||
@@ -62,7 +61,7 @@ namespace Umbraco.Web.Scheduling
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LogHelper.Error<Scheduler>("Unable to locate a log scrubbing interval. Defaulting to 4 hours.", e);
|
||||
LogHelper.Error<LogScrubber>("Unable to locate a log scrubbing interval. Defaulting to 4 hours.", e);
|
||||
}
|
||||
return interval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user