You are here

function notifications_ui_update_6001 in Notifications 6.2

Same name and namespace in other branches
  1. 6.4 notifications_ui/notifications_ui.install \notifications_ui_update_6001()

Disable cache in subscription block

File

notifications_ui/notifications_ui.install, line 45

Code

function notifications_ui_update_6001() {
  $ret = array();
  $ret[] = update_sql("UPDATE {blocks} SET cache = " . BLOCK_NO_CACHE . " WHERE module = 'notifications_ui'");
  $ret[] = update_sql("DELETE FROM {cache_block} WHERE cid LIKE 'notifications_ui:%'");
  return $ret;
}