Jetpack_Sync_Actions::do_cron_full_sync PHP Méthode

do_cron_full_sync() static public méthode

static public do_cron_full_sync ( )
    static function do_cron_full_sync()
    {
        if (!self::sync_allowed()) {
            return;
        }
        self::initialize_sender();
        do {
            $next_sync_time = self::$sender->get_next_sync_time('full_sync');
            if ($next_sync_time) {
                $delay = $next_sync_time - time() + 1;
                if ($delay > 15) {
                    break;
                } elseif ($delay > 0) {
                    sleep($delay);
                }
            }
            $result = self::$sender->do_full_sync();
        } while ($result);
    }