fixes log scrub interval with ms with updated background tasks
This commit is contained in:
@@ -52,7 +52,7 @@ namespace Umbraco.Web.Scheduling
|
||||
|
||||
public static int GetLogScrubbingInterval(IUmbracoSettingsSection settings)
|
||||
{
|
||||
int interval = 24 * 60 * 60; //24 hours
|
||||
var interval = 4 * 60 * 60 * 1000; // 4 hours, in milliseconds
|
||||
try
|
||||
{
|
||||
if (settings.Logging.CleaningMiliseconds > -1)
|
||||
@@ -60,7 +60,7 @@ namespace Umbraco.Web.Scheduling
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LogHelper.Error<LogScrubber>("Unable to locate a log scrubbing interval. Defaulting to 24 horus", 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