M
M
Maxim Lagoysky2018-03-07 11:05:15
MySQL
Maxim Lagoysky, 2018-03-07 11:05:15

How to track the time of removal from publication of an ad?

There is a table with ads, each ad has a date when this ad should be removed from publication. The question is how to constantly view this time? I know there are crons, but I'll have to set it to run every 10 minutes. The question is, can this be done in a more elegant way? It's just that there are many such examples, how to implement it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Leonid Knyazev, 2018-03-07
@lagoy

Why keep track of it. Do it at the application level. Those. When you select ads to display on a page, select those ads that have an "unpublished date" greater than the current date.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question