VlUP6 ?VlU`6 ?:RlUp6 @,#lUp7 RlU`= =aElUpP= uaElU`= uO_lU@= <)lUp@= RlUp? =YlUP? AYlU`? AFlU`? 7lU`p? ClUp@? +lU@@ IRlU0C =aElUPPC uO_lUC <)lUPC RlU D =aElU`PD uO_lUD <)lU` D RlUpP F =YlU@ PF AaElUP`F uFlUF )lU F RlUp (G =YlU PG AaElU``G uFlUG )lU G .lUP 0H D7OlUPH B7OlU`H B)`lUH <)lUH .lU 8@I D7OlUpPI B)`lUI <)lU@I IlUp @J p7OlUPJ BO_lUpJ <)lUpJ &lUL ClU@L +\ lU M >"lUp P s7lUP )lUP ?lU`Q +JlUP Q IlU@Q *JlU Q )lUQ AlU S 61lUS 73lU S 8)lUS $lUp 0U QClU0U +AlUp `V 6$lUp@ @V Q2lU`@`V 73lU` PV 8!lUP%V $lUpY Q7lU`Y /$lUpY Qa7lUY 4ClU@Y +$lUp(Z $lUp`] Q7lU`] /$lUp0] Qa7lU] 4ClU@] +"lUp^ sClU`^ +JlU^ IlU@^ *JlU^ )lU-^ "lUpP_ sClU`_ +JlU  _ IlU@_ *JlU _ )lU  0_ $lU1a AlUpb 61lUppb 7 3lUppb 7$lUp`Pb Q2lUpPpb 7 3lUp@pb 71lUppb 73lUp`b 8!lU`8b ?lU@c +AlUd 61lU d 7 3lUd 7$lUppd Q2lUd 7 3lUPd 71lU d 73lU d 8!lU?d $lU@f $lUp@i Q7lU@`@i /$lUpPi Qa7lUP@i 4ClU@@i +$lU`Cj AlUPm 61lUm 73lU pm 8!lUpGm $lUHn ,&lUp >\ lUq >AU:pA`A * * @return void */ public function schedule_lists_update() { if ( ! wp_next_scheduled( 'rocket_update_dynamic_lists' ) ) { wp_schedule_event( time(), 'weekly', 'rocket_update_dynamic_lists' ); } } /** * Clear dynamic lists update event. */ public function clear_schedule_lists_update() { wp_clear_scheduled_hook( 'rocket_update_dynamic_lists' ); } /** * Displays the dynamic lists update section on tools tab * * @return void */ public function display_update_lists_section() { if ( ! current_user_can( 'rocket_manage_options' ) ) { return; } $data = [ 'beacon' => $this->beacon->get_suggest( 'dynamic_lists' ), ]; echo $this->generate( 'settings/dynamic-lists-update', $data ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } /** * Get the cached ignored parameters * * @return array */ public function get_cache_ignored_parameters(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return isset( $lists->cache_ignored_parameters ) ? array_flip( $lists->cache_ignored_parameters ) : []; } /** * Get the JS minify excluded external paths * * @return array */ public function get_js_minify_excluded_external(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return isset( $lists->js_minify_external ) ? $lists->js_minify_external : []; } /** * Get the patterns to move after the combine JS file * * @return array */ public function get_js_move_after_combine(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return isset( $lists->js_move_after_combine ) ? $lists->js_move_after_combine : []; } /** * Get the inline JS excluded from combine JS * * @return array */ public function get_combine_js_excluded_inline(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return isset( $lists->js_excluded_inline ) ? $lists->js_excluded_inline : []; } /** * Get the preload exclusions * * @return array */ public function get_preload_exclusions(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return isset( $lists->preload_exclusions ) ? $lists->preload_exclusions : []; } /** * Get Delay JS dynamic list. * * @return object */ public function get_delayjs_list() { return $this->providers['delayjslists']->data_manager->get_lists(); } /** * Get the JS minify excluded files * * @return array */ public function get_js_exclude_files(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return isset( $lists->exclude_js_files ) ? $lists->exclude_js_files : []; } /** * Get the incompatible plugins list * * @return array */ public function get_incompatible_plugins() { $lists = $this->providers['incompatible_plugins']->data_manager->get_plugins_list(); return isset( $lists ) ? $lists : []; } /** * Get the staging list * * @return array */ public function get_stagings(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return isset( $lists->staging_domains ) ? $lists->staging_domains : []; } /** * Get the JS minify excluded templates * * @return array */ public function get_exclude_js_templates(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return $lists->exclude_js_template ?? []; } /** * Get the lazy rendered exclusions. * * @return array */ public function get_lrc_exclusions(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return $lists->lazy_rendering_exclusions ?? []; } /** * Updates the lists from JSON files * * @return void */ public function update_lists_from_files() { foreach ( $this->providers as $provider ) { $provider->data_manager->remove_lists_cache(); $provider->data_manager->get_lists(); } } /** * Get the host fonts excluded templates * * @return array */ public function get_exclude_media_fonts(): array { $lists = $this->providers['defaultlists']->data_manager->get_lists(); return $lists->host_fonts ?? []; } }