You are here

function commerce_kickstart_update_7201 in Commerce Kickstart 7.2

Flush caches and rebuild features.

File

./commerce_kickstart.install, line 800
Installation code for Commerce Kickstart.

Code

function commerce_kickstart_update_7201() {

  // install_task wasn't set properly on older installs, which affects
  // feature rebuilding.
  variable_set('install_task', 'done');

  // Only non-overridden indexes get processed in 7202, no reason to do a
  // cache clear this early otherwise.
  $index = search_api_index_load('product_display');
  if (!empty($index) && !$index
    ->hasStatus(ENTITY_OVERRIDDEN)) {
    entity_property_info_cache_clear();
    drupal_flush_all_caches();
  }
}