backend: drop old blocks from the db after 60 days

This commit is contained in:
Tanguy Pruvot 2018-01-19 21:28:35 +01:00
parent 3737f97a60
commit bc7c183114

View file

@ -135,7 +135,7 @@ function BackendCleanDatabase()
marketHistoryPrune();
$delay = time() - 60*24*60*60;
// dborun("delete from blocks where time<$delay");
dborun("DELETE from blocks where time<$delay");
dborun("delete from hashstats where time<$delay");
dborun("delete from payouts where time<$delay");
dborun("delete from rentertxs where time<$delay");