diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-22 13:37:35 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-22 13:37:35 +0000 |
commit | c6b2842bb7d767cec300e3a84d4d1d2d343f9289 (patch) | |
tree | 8da0a038db0693619431b90f12e7acb0918670d4 | |
parent | fb63a6ab72ac4deb823cecd14c7e95f21801a575 (diff) | |
download | elgg-c6b2842bb7d767cec300e3a84d4d1d2d343f9289.tar.gz elgg-c6b2842bb7d767cec300e3a84d4d1d2d343f9289.tar.bz2 |
Increasing sub-hour cron granularity
git-svn-id: https://code.elgg.org/elgg/trunk@2294 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | crontab.example | 4 | ||||
-rw-r--r-- | engine/lib/cron.php | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/crontab.example b/crontab.example index cb2223d3b..68695b368 100644 --- a/crontab.example +++ b/crontab.example @@ -15,6 +15,10 @@ ELGG='http://www.example.com/' # The crontab @reboot $GET ${ELGG}pg/cron/reboot/ +* * * * * $GET ${ELGG}pg/cron/minute/ +*/5 * * * * $GET ${ELGG}pg/cron/fiveminute/ +15,30,45,59 * * * * $GET ${ELGG}pg/cron/fifteenmin/ +30,59 * * * * $GET ${ELGG}pg/cron/halfhour/ @hourly $GET ${ELGG}pg/cron/hourly/ @daily $GET ${ELGG}pg/cron/daily/ @weekly $GET ${ELGG}pg/cron/weekly/ diff --git a/engine/lib/cron.php b/engine/lib/cron.php index f488bab0f..ca1a77968 100644 --- a/engine/lib/cron.php +++ b/engine/lib/cron.php @@ -36,6 +36,10 @@ { switch (strtolower($page[0])) { + case 'minute' : + case 'fiveminute' : + case 'fifteenmin' : + case 'halfhour' : case 'hourly' : case 'daily' : case 'weekly' : |