public static function queue($dirty = true, $startAfter = null)
    {
        $commit = Injector::inst()->create(__CLASS__);
        $id = singleton(QueuedJobService::class)->queueJob($commit, $startAfter);

        if ($dirty) {
            $indexes = FullTextSearch::get_indexes();
            static::$dirty_indexes = array_keys($indexes);
        }
        return $id;
    }
public static function queue($dirty = true, $startAfter = null)
    {
        $commit = Injector::inst()->create(__CLASS__);
        $id = singleton(QueuedJobService::class)->queueJob($commit, $startAfter);

        if ($dirty) {
            $indexes = FullTextSearch::get_indexes();
            static::$dirty_indexes = array_keys($indexes);
        }
        return $id;
    }
public static function queue ( $ dirty = true , $ startAfter = null ) { $ commit = Injector :: inst ( ) -> create ( __CLASS__ ) ; $ id = singleton ( QueuedJobService :: class ) -> queueJob ( $ commit , $ startAfter ) ; if ( $ dirty ) { $ indexes = FullTextSearch :: get_indexes ( ) ; static :: $ dirty_indexes = array_keys ( $ indexes ) ; } return $ id ; }
This method is invoked once indexes with dirty ids have been updapted and a commit is necessary

@param boolean $dirty Marks all indexes as dirty by default. Set to false if there are known comitted and
clean indexes
@param string $startAfter Start date
@return int The ID of the next queuedjob to run. This could be a new one or an existing one.
This method is invoked once indexes with dirty ids have been updapted and a commit is necessary