--- poormanscron.module.1.21.2.1 Mon Aug 11 15:04:18 2008 +++ poormanscron.module Tue Aug 12 13:36:10 2008 @@ -32,8 +32,10 @@ function poormanscron_exit() { $lastrun = variable_get('poormanscron_lastrun', 0); $nextrun = $lastrun + 60 * variable_get('poormanscron_interval', 60); - // If the configured time has passed, start the next poormanscron run. - if (time() > $nextrun) { + // If the configured time has passed and if Drupal's page cache has not been + // used to serve the current page request (hence a full Drupal bootstrap + // will have been performed by now), start the next poormanscron run. + if (time() > $nextrun && !page_get_cache(TRUE)) { // If this cron run fails to complete, wait a few minutes before retrying. variable_set('poormanscron_lastrun',