Commit 275db191 authored by Matthias Adrowski's avatar Matthias Adrowski
Browse files

Merge branch 'feature_log_garbage_collection' into 'master'

[FEATURE] Add GC Config for sg_rest log

See merge request !4
parents 9a13768b 7abe0f29
......@@ -372,3 +372,9 @@ Unfortunately the URL pattern of this extension isn't compatible with the Route
The Route Enhancer simply isn't able to map this properly.
Please use the .htaccess option explained above to beautify your REST urls in the meantime!
### Logging and Garbage Collection
This Extension uses the ususal TYPO3 Logging Mechanisms, per Default it uses the DB and the Table tx_sgrest_log.
It is recommended to have a cleaning Task Configured. If you use one which clears all tables by default, the log entries
will be cleared each 30 days.
<?php
/**
*
* Copyright notice
*
* (c) sgalinski Internet Services (https://www.sgalinski.de)
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
*/
call_user_func(
static function () {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask']['options']['tables']['tx_sgrest_log'] = [
'dateField' => 'crdate',
'expirePeriod' => 30
];
}
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment