If the 'hosting queues summary" is enabled and placed in a page region, then it becomes stale and shows out of date information.

The problem is that the block is cached and not rebuilt until the expiry of the cached version (see http://www.agileapproach.com/blog-entry/caching-drupal for explanation of this time).

The block definition in hook_block in the hosting module should specify that the block is NOT to be cached, as per:

  $blocks['hosting_queues_summary'] = array('info' => t('Hosting queues summary'),
    'enabled' => 1, 'region' => 'right', 'weight' => 1, 'cache' => BLOCK_NO_CACHE);
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jlscott’s picture

Status: Active » Needs review
FileSize
722 bytes

Patch attached.

Steven Jones’s picture

Status: Needs review » Fixed

Thanks very much for the patch! Pushed to 6.x-1.x and 6.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit 2e4fe29 on 6.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x authored by jlscott, committed by Steven Jones:
    Issue #1597648 by jlscott: Fixed Hosting Queues Summary Block is stale.
    
    

  • Commit 2e4fe29 on 6.x-2.x, dev-ssl-ip-allocation-refactor, dev-1205458-move_sites_out_of_platforms, 7.x-3.x, dev-588728-views-integration, dev-1403208-new_roles, dev-helmo-3.x authored by jlscott, committed by Steven Jones:
    Issue #1597648 by jlscott: Fixed Hosting Queues Summary Block is stale.