xl4624/multiplayer-chess

Create a cronjob

Opened this issue · 0 comments

We should have a cronjob that runs everyday that just cleans up the databases since they aren't reused. So the cronjob should iterate through all the games and users (maybe keep track of a new created_at or updated_at field) and check if now - created_at > 1 day, and if so then just delete it.