1. Home
  2. Docs
  3. GTFS
  4. Cronjob

Cronjob

Running Cronjob

  • In the custom GTFS plugin, there is a Cron.php file, that is responsible for pulling down the GTFS Static File URL and to re-build the tables if there are any changes.
  • At the time of the site launch this Cron.php file is setup to run as a cronjob in cPanel every night at midnight.
  • When changes are made to the GTFS settings, this cronjob will need to be ran for the changes to appear on the site.
  • The easiest way for someone from IT to manually run this cronjob will be to update the settings under Common Settings and trigger the cronjob to run once an hour (0, *, *, *, *) or one of the other settings depending on the time of day. Once this runs, the setting can be set back to once a day (0, 0, *, *, *)
  • This method is not recommended, but alternatively, this cronjob can be manually triggered by ssh’ing into the server and navigating to the proper folder cd wp-content/mu-plugins/gtfs/src then running php Cron.php

How can we help?