What I want to do:
So my question is : How can I automatically delete entries after exactly 24 hours in a optimized manner.
What you need to know:
I research a solution that will also allow me to delete files associated to this database entry.
My idea:
My initial idea was to start a Perl script which will check every-hours if the earliest entry was created 24 hours ago or not and if it so delete the entry plus the file associate to this entry, but first, I find this solution a bit ugly and I am sure there is a better solution than this one, more optimized and classy!
The table:
UID, COUNT, VALUE_1, VALUE_2, ..., TIMESTAMP, LINK
If you have any inspiration please tell me!