From 5143427ca410538ec8ceed6de8e0f614c27bc30f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 6 Jul 2023 10:14:24 +0200 Subject: [PATCH] Feat: Add custom log tables to config for scheduled cleanup --- public/typo3conf/ext/ep_products/ext_localconf.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/public/typo3conf/ext/ep_products/ext_localconf.php b/public/typo3conf/ext/ep_products/ext_localconf.php index 23fec922..23cf1265 100644 --- a/public/typo3conf/ext/ep_products/ext_localconf.php +++ b/public/typo3conf/ext/ep_products/ext_localconf.php @@ -308,6 +308,16 @@ $boot = function () { $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/install']['update']['teamSlug'] = \EP\EpProducts\Updates\TeamSlugUpdater::class; + + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class]['options']['tables']['tx_epproducts_log'] = [ + 'dateField' => 'time_micro', + 'expirePeriod' => '180', + ]; + + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class]['options']['tables']['tx_epevents_log'] = [ + 'dateField' => 'time_micro', + 'expirePeriod' => '180', + ]; }; $boot();