Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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);
Comment | File | Size | Author |
---|---|---|---|
#1 | hosting-block-hosting-queues-summary-nocache-1597648-1.patch | 722 bytes | jlscott |
Comments
Comment #1
jlscott CreditAttribution: jlscott commentedPatch attached.
Comment #2
Steven Jones CreditAttribution: Steven Jones commentedThanks very much for the patch! Pushed to 6.x-1.x and 6.x-2.x.