EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
use cleanupAppLog
Yuri Kuznetsovd8d9c3eb66d3
diff --git a/application/Espo/Classes/Cleanup/AppLog.php b/application/Espo/Classes/Cleanup/AppLog.phpindex 092326c3e9..1f58d3684a 100644--- a/application/Espo/Classes/Cleanup/AppLog.php+++ b/application/Espo/Classes/Cleanup/AppLog.php@@ -47,6 +47,10 @@ class AppLog implements Cleanuppublic function process(): void{+ if (!$this->config->get('cleanupAppLog')) {+ return;+ }+$query = DeleteBuilder::create()->from(AppLogRecord::ENTITY_TYPE)->where(['createdAt<' => $this->getBefore()->toString()])