Answer the question
In order to leave comments, you need to log in
How is a controller executed at a specific time?
The goal is this: There is a script, and there is a post, you need it to be deleted at a certain time. The time is in the database.
Question: How is this even done without CRON?
Answer the question
In order to leave comments, you need to log in
Answer: no way without CRON.
PS You can check with any request to the site - is it necessary to remove something there, make coffee, turn on the washing machine? But we, like, are all serious guys here ...
If you need to make sure that the post is not shown after a certain time, you can not delete it from the database. Just add a variable with the display end date. And if the current date is greater than this variable, then do not show it. Or rather, make a global scope for this model. And in skoupe to make a condition where
This decision without krone.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question