Version 4.1.2
This commit is contained in:
1 parent
3ba79295ee
commit
28bd025b35
1131 files changed
+63658
-20579
No files matched your search
@@ -75,6 +75,12 @@ class _cleanup extends \IPS\Task
|
||||
{
|
||||
\IPS\Db::i()->delete( 'core_admin_logs', array( 'ctime < ?', \IPS\DateTime::create()->sub( new \DateInterval( 'P' . \IPS\Settings::i()->prune_log_admin . 'D' ) )->getTimestamp() ) );
|
||||
}
|
||||
|
||||
/* ...and moderators logs */
|
||||
if( \IPS\Settings::i()->prune_log_moderator )
|
||||
{
|
||||
\IPS\Db::i()->delete( 'core_moderator_logs', array( 'ctime < ?', \IPS\DateTime::create()->sub( new \DateInterval( 'P' . \IPS\Settings::i()->prune_log_moderator . 'D' ) )->getTimestamp() ) );
|
||||
}
|
||||
|
||||
/* ...and error logs */
|
||||
if( \IPS\Settings::i()->prune_log_error )
|
||||
@@ -160,9 +166,8 @@ class _cleanup extends \IPS\Task
|
||||
catch ( \UnexpectedValueException $e ) { }
|
||||
}
|
||||
|
||||
/* Remove widget trash (configs stored older than a day) */
|
||||
\IPS\Db::i()->delete( 'core_widget_trash', array( 'date < ?', time() - 86400 ) );
|
||||
|
||||
/* Remove widgets */
|
||||
\IPS\Widget::emptyTrash();
|
||||
|
||||
/* Reset expired "moderate content till.." timestamps */
|
||||
\IPS\Db::i()->update( 'core_members', array( 'mod_posts' => 0 ), array( 'mod_posts != -1 and mod_posts <?', time() ) );
|
||||
|
||||
Reference in new issue
Block a user