function search_api_update_7115 in Search API 7
Switch to indexing without the use of a cron queue.
File
- ./
search_api.install, line 938 - Install, update and uninstall functions for the Search API module.
Code
function search_api_update_7115() {
variable_del('search_api_batch_per_cron');
DrupalQueue::get('search_api_indexing_queue')
->deleteQueue();
db_update('search_api_item')
->fields(array(
'changed' => 1,
))
->condition('changed', 0, '<')
->execute();
}