function views_update_6012

Correct the cache setting for exposed filter blocks.

See also

http://drupal.org/node/910864

File

./views.install, line 511

Code

function views_update_6012() {
    // There is only one simple query to run.
    db_update('blocks')->condition('module', 'views')
        ->condition('delta', db_like('-exp-') . '%', 'LIKE')
        ->fields(array(
        'cache' => DRUPAL_NO_CACHE,
    ));
}