HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

Vanilla Performance Discussion

124»

Comments

  • Options
    philcophilco New
    edited May 2016

    I had a look and read that it only does > 12 months. We have over 200,000 records month.

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    @philco said:
    I had a look and read that it only does > 12 months. We have over 200,000 records month.

    Open /plugins/ActivityPurge/default.php and look at line 54:

    //protect against less than a years deletion
    if ($delMonths < 12)  $delMonths = 12;
    

    Change it to

    // protect against less than a years deletion
    // if ($delMonths < 12)  $delMonths = 12;
    

    Then open /plugins/ActivityPurge/views/activitypurgeset.php and look at line 29:

    $Options = array('12' => '12','13' => '13','14' => '14','15' => '15','16' => '16','18' => '18','20' => '20', '24' => '24','30' => '30', '36' => '36','48' => '48','60' => '60','72' => '72');
    

    Change it to

    $Options = array('3' => '3', '6' => '6', '9' => '9', '12' => '12','13' => '13','14' => '14','15' => '15','16' => '16','18' => '18');
    
  • Options

    Thank you @R_J

Sign In or Register to comment.