rust
go</defaultvalue>
</option>
+ <option name="modification_log_expiration">
+ <categoryname>message.general</categoryname>
+ <optiontype>integer</optiontype>
+ <defaultvalue>0</defaultvalue>
+ <minvalue>0</minvalue>
+ <maxvalue>365</maxvalue>
+ <suffix>days</suffix>
+ </option>
<!-- /message.general -->
<option name="search_results_per_page">
<categoryname>message.search</categoryname>
define('BLACKLIST_SFS_IP_ADDRESS', '90percentile');
define('BLACKLIST_SFS_ACTION', 'disable');
define('ENABLE_ENTERPRISE_MODE', 0);
+define('MODIFICATION_LOG_EXPIRATION', 0);
<?php
namespace wcf\system\cronjob;
use wcf\data\cronjob\Cronjob;
+use wcf\data\modification\log\ModificationLog;
use wcf\data\object\type\ObjectTypeCache;
use wcf\system\visitTracker\VisitTracker;
use wcf\system\WCF;
]);
}
+ if (MODIFICATION_LOG_EXPIRATION > 0) {
+ $sql = "DELETE FROM wcf".WCF_N."_modification_log
+ WHERE time < ?";
+ $statement = WCF::getDB()->prepareStatement($sql);
+ $statement->execute([
+ TIME_NOW - 86400 * MODIFICATION_LOG_EXPIRATION
+ ]);
+ }
+
// clean up error logs
$files = @glob(WCF_DIR.'log/*.txt');
if (is_array($files)) {
<item name="wcf.acp.option.blacklist_sfs_action.description"><![CDATA[Es besteht immer das Risiko eines fehlerhaften Eintrages, daher wird die Einstellung <strong>Deaktivierung, erfordert manuelle Freischaltung</strong> ausdrücklich empfohlen.]]></item>
<item name="wcf.acp.option.blacklist_sfs_action.disable"><![CDATA[Deaktivierung, erfordert manuelle Freischaltung]]></item>
<item name="wcf.acp.option.module_amp"><![CDATA[<abbr title="Accelerated Mobile Pages">AMP</abbr>]]></item>
+ <item name="wcf.acp.option.modification_log_expiration"><![CDATA[Speicherzeit für Änderungen]]></item>
+ <item name="wcf.acp.option.modification_log_expiration.description"><![CDATA[Zeitraum, nachdem alte Änderungen aus dem Änderungsprotokoll entfernt werden [0, um die Entfernung gänzlich zu deaktivieren]]]></item>
</category>
<category name="wcf.acp.customOption">
<item name="wcf.acp.customOption.list"><![CDATA[Eingabefelder]]></item>
<item name="wcf.acp.option.blacklist_sfs_action.description"><![CDATA[There is always the risk of a false-positive match, therefore it is highly recommended to set it to <strong>Disable and require manual approval</strong>.]]></item>
<item name="wcf.acp.option.blacklist_sfs_action.disable"><![CDATA[Disable and require manual approval]]></item>
<item name="wcf.acp.option.module_amp"><![CDATA[<abbr title="Accelerated Mobile Pages">AMP</abbr>]]></item>
+ <item name="wcf.acp.option.modification_log_expiration"><![CDATA[Storage Time for Modification Logs]]></item>
+ <item name="wcf.acp.option.modification_log_expiration.description"><![CDATA[Modification logs will be deleted after the entered amount of days. To disable deleting old modification logs, enter “0”.]]></item>
</category>
<category name="wcf.acp.customOption">
<item name="wcf.acp.customOption.list"><![CDATA[Option Fields]]></item>