Run a method or command when a row is expired.

Posted 4 months ago by ayoubelmoudni

Hello guys,

I have a table which has user publications, when the user publish a publications he choose a date that this publication will remains visible in the platform, i want a way to flip the state of a publication that time is come to now be shown anymore (date of publication is equal or greater then date system), i know about the cronjob way but i wanted to ask here if there's a better way to do this because i think the cronjob way is not good for this i will have to run a command every minute which i prefer not to do, i only need ideas not code.

Thank you.

Please sign in or create an account to participate in this conversation.