Block Cache Alter

swentel - December 15, 2008 - 18:34
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.

If you're concerned about block caching, take a look at #235673: Changes to block caching mode not caught. Also, views block caching is restored since views 6.x-2.6, see #340701: Incorperating Block Cache.

the module also comes with 2 core patches 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 actions (nodeapi, comment and user).

  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.

Releases

Official releasesDateSizeLinksStatus
6.x-1.42009-Sep-1821.24 KBRecommended for 6.xThis is currently the recommended release for 6.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2009-Jun-0621.19 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.