Reputation: 2787
I store some files in a folder and add file_name and expire_time
to database.
How to delete files after expire time without running php
code continual?
Upvotes: 0
Views: 531
Reputation: 624
Upvotes: 2
Reputation: 641
Like @JerzySkalski first recommend, use CRON for your task. Its the simplest yet robust way to do it.
others may advice you to create a deamon for it, which in IMO its overkill for your task.
Cheers
Upvotes: 0