Drupal: .htaccess Access Deny
August 21, 2014 – 7:59 am | No Comment

In this article I will tell how to forbid access to certain resources for some clients. The instructions will include descriptions of different directives.

Read the full story »
CSS Templates

Contain reviews and news about CSS Templates.

Freebies

Contain freebies such as icons, graphics, headers and images for your websites.

Fun Stuff

Contains other fun stuff for entertainment or interesting site showcase.

How-To

Contain technical elaborations on some specific workarounds or common tweak.

Joomla Templates

Contains reviews and news about Joomla templates.

Home » How-To

Drupal: Quick Diagnostics of Cron Hanging Up

Submitted by on June 25, 2010 – 4:08 amNo Comment

Solution

Idexing

Decrease number of documents for indexing at one cron launching on the page of search settings.
It’s better to run cron a few times a day.

Mailing

If you have simple news then it can cause hanging up when sending a huge number of emails.

Have no time

Try to change cron.php file with the following way:

// If not in ‘safe mode’, increase the maximum execution time:
// if (!ini_get(‘safe_mode’)) {
set_time_limit(1800);
// }
i.e. comment these lines.

Who is in fault?

To define the module causing cron hanging up, do the following:
Change line 404-405 in the last function module_invoke_all() in includes/module.inc file from

foreach (module_implements($hook) as $module) {
$function = $module .’_’. $hook;

to

foreach (module_implements($hook) as $module) {
if ($hook == ‘cron’) {
    watchdog(‘cron_runs’, $module); }
$function = $module .’_’. $hook;

Thus new category "cron_runs" will appear in log
This category will contains the list of modules called cron. The last module is in fault of cron hanging up.

It is necessary to reset core files after diagnostics.

Leave a comment!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.