You are here

module

Drupal module development and block caching issue

I have spent the past couple hours trying to debug a module that creates a bunch of content blocks on a Drupal 6 website. These blocks were set to BLOCK_CACHE_PER_PAGE setting but I changed them to BLOCK_NO_CACHE because I am implementing my own caching on them.

Well, turns out that even if you enable / disable your module and update your block admin page, Drupal never changes the block's cache setting. This is apparently not by design.

I will do a future post about implement custom caching in your modules in the future because I have learned a ton while completing gutting the caching that I did a year ago (which I did a very poor job of). Until then, I guess I chalk up the hours of frustration to "experience".