Jump to content


Welcome to DevFuse Forums


Sign In  Log in with Facebook

Create Account
Welcome to DevFuse Forums, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of DevFuse Forums by signing in or creating an account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get email updates
  • Get your own profile page and make new friends
  • Send personal messages to other members.
 
Guest Message by DevFuse

(View All Products)Featured Products

Donation Tracker


Help fund your forum with donations, setup goals and track member donations. Offer rewards for members donating.

Timeslip System


Have your members submit their race times and share with others. Intergrates with our Garage System.

Videos System


Allows your members to submit their own videos for community viewing. Support is included for all the major video sites.

Garage System


Setup a community Garage when members add their own vehicles with images and modifications.

Form Manager


Build your own forms for your members without coding experience. Support included for pm, email and topics.

Collections System


Build a community database of items for your members. Full features custom fields included.

Tutorial info Visit support topic

  • Added on: Nov 06 2011 07:26 AM
  • Views: 626
 


3.2.x Adjust the log pruning schedule

A quick simple tweak to adjust the log pruning from thirty days to another number

Posted by AndyF on Nov 06 2011 07:26 AM
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...
protected $deleteTime = 2592000;

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

14 days
protected $deleteTime = 1209600;

7 days
protected $deleteTime = 604800;

3 days
protected $deleteTime = 259200;

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.

Powered by Tutorials 1.5.1 © 2013, by Michael McCune