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
You may be experiencing the
You may be experiencing the bug described in #235673: Changes to block caching mode not caught and #618864: BLOCK_NO_CACHE seems to have no effect in certain situations.
Thanks for your reply. It
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 :)
FiveRDesign - UK Drupal Consulting, Development, Custom Modules & Support
MySweetShadow - Heavy Metal Blog, Drupal & SEO
I'm glad it works. Thanks for
I'm glad it works. Thanks for the feedback.