diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-05-19 13:41:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-05-19 13:41:52 +0000 |
commit | 34af2a3a8e1f7b9fa6a9797f6d501bc3f2c1fd84 (patch) | |
tree | 22be017f1a80cf81c772f6bb5d7ca69179535214 /cron.php | |
parent | c5f9c709fd7372eaa301c6f4a4487908cb34d72b (diff) | |
download | brdo-34af2a3a8e1f7b9fa6a9797f6d501bc3f2c1fd84.tar.gz brdo-34af2a3a8e1f7b9fa6a9797f6d501bc3f2c1fd84.tar.bz2 |
CHANGES:
- Rewrote the cron system. Removed cron.module and moved all cron
related options to settings.module. Cron was a confusing thing:
it has been made simpler both in terms of code and configuration.
+ You had to rehash your modules to make the cron show up in
the list. This is no longer required.
+ You couldn't tell what cron "watchdog" or cron "story" were
up to. Instead, we now display a clear description message
for every cron involved.
+ The user interface of setting.module - and the admin section
in general, looks a bit ackward but I couldn't care less and
don't want to see this improve at the time being.
- Improved setting.module:
+ Now uses variable_set().
+ Added some help and documentaition on how to setup cron.
- Improved ./export.
- Updated CHANGELOG.
TODO:
- I'm now going to look into UnConeD's question with regard to
check_output() and $theme->node(), as well as the filter and
macro stuff. I'll probably be fine-tuning setting.module a
bit more on my way.
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -2,13 +2,6 @@ include_once "includes/common.inc"; -function cron_run() { - $time = time(); - $result = db_query("SELECT * FROM crons WHERE $time - timestamp > scheduled"); - while ($task = db_fetch_object($result)) module_invoke($task->module, "cron"); - db_query("UPDATE crons SET timestamp = $time WHERE $time - timestamp > scheduled"); -} - -cron_run(); +foreach (module_list() as $module) module_invoke($module, "cron"); ?>
\ No newline at end of file |