From b47afd11ea37cd263c16a0f462d68a8f257f0b35 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 17 Jun 2025 14:31:38 +0800 Subject: [PATCH] Add Cron expressions for expired audit log deletion and Excel file cleanup options --- docs/en/modules/audit-logging-pro.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/en/modules/audit-logging-pro.md b/docs/en/modules/audit-logging-pro.md index 1ef05fc131..cb32ff52fe 100644 --- a/docs/en/modules/audit-logging-pro.md +++ b/docs/en/modules/audit-logging-pro.md @@ -131,6 +131,7 @@ To see `AbpAuditingOptions` properties, please see its [documentation](../framew Configure(options => { options.Period = (int)TimeSpan.FromSeconds(30).TotalMilliseconds; + options.CronExpression = "0 23 * * *"; // This Cron expression only works if Hangfire or Quartz is used for background workers. }); ``` @@ -146,6 +147,7 @@ Configure(options => options.FileRetentionHours = 24; // How long to keep files before cleanup (default: 24 hours) options.DownloadBaseUrl = "https://yourdomain.com"; // Base URL for download links in emails options.ExcelFileCleanupOptions.Period = (int)TimeSpan.FromHours(24).TotalMilliseconds; // Interval of the cleanup worker (default: 24 hours) + options.ExcelFileCleanupOptions.CronExpression = "0 23 * * *"; // This Cron expression only works if Hangfire or Quartz is used for background workers. }); ```