public static function syncMedium($force = false) { self::initSync(300); // Sync schedules (highest priority). Debug::runTimer('Run schedule manager', function () { ScheduleManager::run(!DF_IS_COMMAND_LINE); }); // Sync show episodes and artist news (high priority). Debug::runTimer('Run podcast manager', function () { PodcastManager::run(); }); // Pull the homepage news. Debug::runTimer('Run network news manager', function () { NewsManager::run(); }); // Sync CentovaCast song data. Debug::runTimer('Run CentovaCast track sync', function () { CentovaCast::sync(); }); Settings::setSetting('sync_last_run', time()); }