Sign in to follow this  
Followers 0

3.2.x Adjust the log pruning schedule


Description

A quick simple tweak to adjust the log pruning from thirty days to another number
IP.Board provides options (System Settings > Advanced > Log Pruning) to enable / disable pruning various logs such as spider logs, database error logs, spam logs etc.

The only issue some administrators may have is that thirty days may be too long, or in some rare cases not enough but again not enough to justify not pruning them.

A simple tweak is possible to adjust the pruning schedule. :)

Connect via FTP or your hosts file manager and open admin/applications/core/tasks/logprune.php

Around line 34, find...
[code]protected $deleteTime = 2592000;[/code]

Replace that line with one of the following, depending on what you require.

[b]14 days[/b]
[code]protected $deleteTime = 1209600;[/code]

[b]7 days[/b]
[code]protected $deleteTime = 604800;[/code]

[b]3 days[/b]
[code]protected $deleteTime = 259200;[/code]

Save the change. The settings description will still indicate 30 days but the actual pruning will take place at the days interval you have specified. :) , remember this change will effect them all so you may wish to disable any pruning you do not want to occur at that interval.



0 Comments

There are no comments to display.