$block['subject'] = t("Revisions");
          $block['content'] = theme('content_moderation_info_block',$node, $links, $state, $live,$revisions_list);
          $block['cache'] = false;

This is not the way you remove caching. See hook_block as example how to do it.

CommentFileSizeAuthor
#1 863376.patch1.21 KBdevkinetic

Comments

devkinetic’s picture

Status: Active » Needs review
StatusFileSize
new1.21 KB

Correct method implemented. You must run update.php for this patch to update blocks

eugenmayer’s picture

actually there is a different way by using the cache operation, http://api.drupal.org/api/function/hook_block/6

i implemented 'cache' and returning BLOCK_NO_CACHE now

eugenmayer’s picture

Status: Needs review » Fixed

implementing your update hook though, as iam not sure when it is called ( probably only on block edit). Thank you very much for the report and contribution!

devkinetic’s picture

Good catch, Yes if the module has already been setup you need that update hook to update the DB. Where as if you were installing the module for the first time that would not be an issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.