<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">Hi,<br/><br/>Maybe also a good alternative to poormanscron and crontab is the Croninfinite module. It's still a sanbox Project but it works fine for me for a month now, very simple and without struggeling with the crontab command.<br/><br/>Cheers<p>Von meinem drahtlosen BlackBerry®-Handheld gesendet</p><hr/><div><b>From: </b> Steve Ringwood &lt;nevets@tds.net&gt;
</div><div><b>Sender: </b> development-bounces@drupal.org
</div><div><b>Date: </b>Thu, 14 Jul 2011 14:20:50 -0500</div><div><b>To: </b>&lt;development@drupal.org&gt;</div><div><b>ReplyTo: </b> development@drupal.org, nevets@mailbag.com
</div><div><b>Subject: </b>Re: [development] Why is drupal_page_footer() triggering cron?</div><div><br/></div>
    Ernst<br>
    <br>
    &nbsp;&nbsp;&nbsp; Look under Administration &raquo; Configuration &raquo; System &raquo; Cron<br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; You can set the frequency to never in which case you would <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; need a cron job configured for the cron tasks to actually
    run.<br>
    <br>
    Nevets<br>
    <br>
    On 7/14/2011 1:11 PM, Ernst Pl&uuml;ss wrote:
    <blockquote
cite="mid:CAJUfqpUe1qndgSfwNfu=5UrnggwK9u3Roj7s9_NoNgGA5DWt5w@mail.gmail.com"
      type="cite">
      <div class="moz-text-plain" wrap="true" graphical-quote="true"
        style="font-family: -moz-fixed; font-size: 13px;"
        lang="x-western">
        <pre wrap="">Hi

In D7 I discovered at the end of drupal_page_footer()[1] cron jobs are
started. On our website this triggers the search index being updated,
which can take minutes. Needles to say that the user doesn't want to
wait for this to be finished.

I'm curious whether cron is relay called at the end of each page
request? My understanding of hook_cron is that it is only called by
cron.php.

How can I make sure that this does not trigger any long running cron jobs?

Regards
Ernst



[1] <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_page_footer/7">http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_page_footer/7</a>


</pre>
      </div>
    </blockquote>
    <br>
  </body>
</html>