weekly('cacheDataByArchiveNameReports', null, self::LOWEST_PRIORITY); } /** * Caches the intermediate DataTables used in the getIndividualReportsSummary and * getIndividualMetricsSummary reports in the option table. */ public function cacheDataByArchiveNameReports() { $api = API::getInstance(); $api->getIndividualReportsSummary(true); $api->getIndividualMetricsSummary(true); $now = Date::now()->getLocalized("%longYear%, %shortMonth% %day%"); Option::set(DBStats::TIME_OF_LAST_TASK_RUN_OPTION, $now); } }