Hi all,

We have written a custom module that outputs a couple of blocks, and these blocks are dynamic (they take in taxonomy terms from the URL to display related content of various kinds). The content of these blocks changes on a per-page basis, but not on a per role basis or any other basis. I enabled block caching on the BLOCK_CACHE_PER_PAGE level, but it does not seem to work. If I go to a particular page sometimes there is data in the blocks from a prior page that has been visited, almost like the caching is getting stuck.

Has anyone else experienced anything like this or does anyone have any ideas? (just to state the obvious block caching is on in admin/settings/performance, and the normal level of page caching is on too).

Comments

marcvangend’s picture

jeebsuk’s picture

Thanks for your reply.

It turned out the problem was that in order to get Drupal to recognise the change in the block caching option I either needed to manually edit the database (as suggested in that link you gave me) or to uninstall and reinstall the module. You definitely gave me the shove in the right direction, so thank you very much :)

marcvangend’s picture

I'm glad it works. Thanks for the feedback.