I am writing a reservation API and I want to create temporary holds on assets while a user goes through the booking app. So basically, I need a way to create temporary records in my DB that expire after a certain time period has passed. Any ideas on how I should do that?
Share
I would then have a cron job that, say hour or daily,
cleans up all records > 1 hour (or other period) old.
You could also make it a manual job, trigger from a view link with an update action in the controller and model, say,