-
Notifications
You must be signed in to change notification settings - Fork 194
Controller Cron
Jeff Johns edited this page Feb 4, 2014
·
4 revisions
| Controller | Extends | Path |
|---|---|---|
| Cron | Plain_Controller | /application/controllers/cron.php |
| Type | Accessible |
|---|---|
| XMLHttpRequest | No |
| API | No |
| Web View | No |
This controller handles all the requests for cron jobs for the service.
Called automatically which in turn calls the parent constructor. It also does the following:
- Checks if request is coming from command line, redirect out if not
Default route. Simply prints out a statement.
$ php index.php cronUsed to run through all the marks in the marks table and look for embeds. If an embed is found, it saves it; else marks the record as processed.
$ php index.php cron processEmbeds