meta data for this page
  •  

This is an old revision of the document!


Cron

ITFlow comes packaged with several PHP scripts that are intended to be run automatically via Cron. Running scripts via Cron ensures that things happen automatically in the background without requiring a logged in user.

Cron Enable & Key

In order to ensure only Cron executes the scripts (and not some random user/bot navigating to the pages), you must enable cron & generate and provide a Cron Key.

Login to ITFlow as an admin. Navigate to Settings > Alerts:

  • Enable cron
  • Generate a Cron Key

Cron Scripts

The following scripts should be added to your Cron:

  • php /full/path/to/cron.php [KEY] – Should execute at 2 AM daily: cleanup, alerts, recurring invoices, etc.
  • php /full/path/to/cron_ticket_parse.php [KEY] – Should execute every min: parses tickets
  • php /full/path/to/cron_mail_queue.php [KEY] – Should execute every min: Used for emailing within the application

Please note: Swap [KEY] with your actual Cron key, and don't include the brackets [ ]