Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Log pruning task in ACP
#1
Question 
Guys, just a quick question - this task is running every date ( I have checked task logs) but please can you confirm if it works for you? I mean does it delete all old logs from - administrator log, moderator log, user email log, system mail log, spam log?

Thank you!
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#2
Enabled for a daily task, it does NOT delete any log records.
I can confirm for:
- Administrator Log
- Moderator Log
- (can't check for the rest of log atm.)


Edit:
Sorry guys, I have to revise my written!
The default is set to 365 days. My forum does not passed a year of running. So forget about my rashly statement emberrassing Smile

[ExiTuS]
Reply
#3
It's working for my test forum:
  • admin_logs
  • mod_logs
  • task_logs
  • mail_logs
  • user_mail_logs
Since I don't have group promotion operations, I don't know if purging promotion log is working.

BTW, there's an array of days of logs to be pruned defined in ./inc/config.php which is used in this task:
$config['log_pruning'] = array(
	'admin_logs' => 365, // Administrator logs
	'mod_logs' => 365, // Moderator logs
	'task_logs' => 30, // Scheduled task logs
	'mail_logs' => 180, // Mail error logs
	'user_mail_logs' => 180, // User mail logs
	'promotion_logs' => 180 // Promotion logs
);

I've tested log pruning by setting those values to 1 and executing that task.
Worth a try.
Reply
#4
Thx guys for your feedback!
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)