Пример #1
0
 /**
  * Deletes the archive iterator and savepoint files created during the
  * process of iterating through a crawl mix.
  *
  * @param int $timestamp The timestamp of the crawl mix
  */
 function deleteCrawlMixIteratorState($timestamp)
 {
     global $INDEXING_PLUGINS;
     setLocaleObject(getLocaleTag());
     $searchController = new SearchController($INDEXING_PLUGINS);
     $searchController->clearQuerySavepoint($timestamp);
     $archive_dir = WORK_DIRECTORY . "/schedules/" . self::name_archive_iterator . $timestamp;
     if (file_exists($archive_dir)) {
         $this->db->unlinkRecursive($archive_dir);
     }
 }