Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Extension as cron job

I'm making a Discussion Expiration extension and I need to it to run just once a day. and close out discussions based on user criterion.
How do i run the extension once per day?


  • Options
    For a proof of concept, you should take a look at Drupal's Poor Man's Cron module.
  • Options
    edited May 2007
    thats what i was thinking of doing.
    I can put in the last run date in the configuration. and every page load it checks today's date with last check date in the configuration. If more than 1 run the code and update last check configuration. else skip altogether.
    my quirk with this is it will make this check every single page load. for massive forums this can be lot of useless checking of configuration.
  • Options
    You could perhaps hook it into something else than page load. Perhaps when someone logs in instead?
This discussion has been closed.