From c6b2842bb7d767cec300e3a84d4d1d2d343f9289 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 22 Oct 2008 13:37:35 +0000 Subject: Increasing sub-hour cron granularity git-svn-id: https://code.elgg.org/elgg/trunk@2294 36083f99-b078-4883-b0ff-0f9b5a30f544 --- crontab.example | 4 ++++ engine/lib/cron.php | 4 ++++ 2 files changed, 8 insertions(+) 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' : -- cgit v1.2.3