If you turn on the maintenance mode, any data in the daily tables older than 90 days is automatically deleted.
Thread Starter
Hetman
(@tomeh)
Thanks for the answer, and you can not adjust to erase the after 30 days?
You can’t do this automatically currently. You will need to edit the top-10.php file to change this. Is there a reason you don’t want to keep the data for 90 days?
Line to edit:
https://github.com/WebberZone/top-10/blob/master/top-10.php#L1050
Thread Starter
Hetman
(@tomeh)
I have a large site – a few million hits so everyone even the smallest addition they generate long records in the database much he charges
For now, you will can change this line and change 90 to 30:
$from_date = strtotime( '-30 DAY' , $current_time );
Thread Starter
Hetman
(@tomeh)
We thank you for your help. Best wishes.