Author Topic: Inbox Purge  (Read 990 times)

Marble

  • Global Moderator
  • Veteran Member
  • *****
  • Posts: 1006
  • Karma: +56/-7
Inbox Purge
« on: September 28, 2015, 11:23:36 AM »
My inbox wasn't purging automatically when I set it for 7 days in the admin panel.
So, I made an alteration to sitename.com/tools/cron/jobs/d/1purges.php

If you're having the same problem, then here's what I did.

line 53 reads:
Code: [Select]
$query="DELETE FROM `{$dbtable_prefix}user_inbox` WHERE `date_sent`<DATE_SUB('$now',INTERVAL ".$config['purge_inbox']." DAY) AND `del`=0 AND `fk_folder_id`=0";
I replaced it with
Code: [Select]
$query="DELETE FROM `{$dbtable_prefix}user_inbox` WHERE `date_sent`<DATE_SUB('$now',INTERVAL ".$config['purge_inbox']." DAY)"; //Inboxes purge edit by Marble 9-22-2015
If you see that I'm logged in forever... it just means I turned the page on my browser and forgot to logout.