Block Cache Alter

Alter cache settings per block. Cache settings per block are now set in code, but if you don't like the default - usually none - you can now easily change this. Install this to speed up block rendering for authenticated users.

Currently this module doesn't work anymore on Drupal core 6.22, see #1173012: Blocks lose settings during update.php and cache clears and #1194880: _block_rehash() overwrites the caching mode set by Block_Cache_Alter module.

The module also comes with 2 core patches (Only D6 for now) you can apply to the block module which will make block caching much smarter. You'll be able to set expire times per block or clear the cache on drupal core actions (nodeapi, comment and user) and nodequeue changes (currently only dev version).

  1. blockcache_alter_with_node_grants.patch: most users should use this one.
  2. blockcache_alter_no_node_grants.patch: Experienced users can use this one if one of your installed modules is implementing a node_grants hook. Drupal checks on this and whenever 1 or more hooks are found block caching is disabled completely. Handle with care though, this might cause problems, be sure to test your site completely if you apply this patch.

Note 1: you can run this module *without* applying a patch, you simply don't get that much options for refreshing a block. More info is available in the Readme
Note 2: If you apply the patch, the module must be enabled always since the patches uses functions only available in the blockcache alter module.

Project Information

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0 tar.gz (7.39 KB) | zip (8.36 KB) 2011-Jan-05 Notes
6.x-1.4 tar.gz (21.24 KB) | zip (33.42 KB) 2009-Sep-18 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (8.36 KB) | zip (9.21 KB) 2011-Dec-28 Notes
6.x-1.x-dev tar.gz (22.96 KB) | zip (35.4 KB) 2011-Dec-16 Notes

Maintainers for Block Cache Alter

  • swentel - 45 commits
    last: 6 weeks ago, first: 3 years ago
  • TimLeytens - 1 commit
    last: 1 year ago, first: 1 year ago

Issues for Block Cache Alter

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 21 Jun 11