Skip to content

Commit

Permalink
[TASK] Add registration tables to TYPO3 garbage collection task
Browse files Browse the repository at this point in the history
Refs #1019
  • Loading branch information
derhansen committed Jun 25, 2022
1 parent c6e6bce commit 21ac2b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'uploadfolder' => '0',
'createDirs' => '',
'clearCacheOnLoad' => 1,
'version' => '5.9.2-dev',
'version' => '5.9.1',
'constraints' => [
'depends' => [
'typo3' => '10.4.2-10.4.99',
Expand Down
8 changes: 8 additions & 0 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@
]
];

// Register garbage collection tables
foreach (['tx_sfeventmgt_domain_model_registration', 'tx_sfeventmgt_domain_model_registration_fieldvalue'] as $table) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks'][TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class]['options']['tables'][$table] = [
'dateField' => 'tstamp',
'expirePeriod' => 30,
];
}

if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('linkvalidator')) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
'<INCLUDE_TYPOSCRIPT: source="FILE:EXT:sf_event_mgt/Configuration/TSConfig/Mod/Page/mod.linkvalidator.txt">'
Expand Down

0 comments on commit 21ac2b6

Please sign in to comment.