Page 1 of 1

a quick question about Cron job

Posted: Wed Apr 18, 2018 1:25 am
by phanhuyen
Greetings PHP Technorati. I hope all is well. I come to you seeking more guidance on the subject of using a cron job to delete a mysql field entry 15 minutes after the entry is entered by the user. I haven't done this before, but should I use some sort of time expiration php script or leave it to the mysql cron job to run every 15 minutes, deleting new entries? Any thoughts on this matter as always is greatly appreciated. :banghead:

thanks in advance.

Batoe

.:To code or not to code is never the question!:. :?

Re: a quick question about Cron job

Posted: Wed Apr 18, 2018 10:15 pm
by Christopher
I think the first question is why are you deleting field every 15 minutes. It might be better to timestamp the record and use that to do whatever you are trying to do. Maybe that is what you mean by "some sort of time expiration php script"?