You are here

function apachesolr_update_6007 in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 6 apachesolr.install \apachesolr_update_6007()

Fix block caching settings.

File

./apachesolr.install, line 286
Install, update and uninstall functions for the apachesolr module.

Code

function apachesolr_update_6007() {
  $ret = array();
  $ret[] = update_sql("UPDATE {blocks} set cache = " . (BLOCK_CACHE_PER_ROLE | BLOCK_CACHE_PER_PAGE) . " WHERE module LIKE 'apachesolr%' AND cache = " . BLOCK_CACHE_PER_PAGE . " AND delta != 'currentsearch' AND delta != 'sort'");
  return $ret;
}