/** * Перед перезапуском скрипта (индексация из веба) */ public function interrupt($msg = '') { $this->index->commit(); $this->task->set('is_idle', true); $this->save_task(); nc_search::log(nc_search::LOG_INDEXING_BEGIN_END, "Interrupting indexing area '{$this->get_area()}'" . ($msg ? " ({$msg})" : "")); }