GRAYBYTE WORDPRESS FILE MANAGER7254

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/chahida.co.in/wp-content/plugins/wp-optimize/cache/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/chahida.co.in/wp-content/plugins/wp-optimize/cache//class-wpo-load-url-task.php
<?php

if (!defined('ABSPATH')) die('Access denied.');

if (!class_exists('Updraft_Task_1_2')) require_once(WPO_PLUGIN_MAIN_PATH . 'vendor/team-updraft/common-libs/src/updraft-tasks/class-updraft-task.php');

class WP_Optimize_Load_Url_Task extends Updraft_Task_1_2 {

	/**
	 * Default options.
	 */
	public function get_default_options() {
		return array();
	}

	/**
	 * Run preload http requests with different user-agent values to cache pages for different devices.
	 *
	 * @return bool
	 */
	public function run() {
		$url = $this->get_option('url');

		if (empty($url)) return;

		$cache_preloader = WP_Optimize_Page_Cache_Preloader::instance();

		// load pages with different user-agents values.

		$cache_preloader->preload_desktop($url);
		$cache_preloader->preload_mobile($url);
		$cache_preloader->preload_amp($url);

		if (defined('WP_CLI') && WP_CLI) {
			WP_CLI::log($url);
		}

		/**
		 * Action triggered after preloading a single url
		 *
		 * @param string $url             The url to preload
		 * @param object $cache_preloader Cache preloader instance
		 */
		do_action('wpoptimize_after_preload_url', $url, $cache_preloader);

		/**
		 * Allows to change the delay between each URL preload, to reduce server load.
		 *
		 * @param integer $preload_delay The delay between each request in microseconds (1000000 = 1 second).
		 */
		usleep(apply_filters('wpoptimize_preload_delay', 500000));

		return true;
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:24
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:24
giriqfky / giriqfky
0644
class-wp-optimize-cache-commands.php
11.583 KB
March 03 2025 22:03:20
giriqfky / giriqfky
0644
class-wp-optimize-detect-cache-plugins.php
2.266 KB
June 03 2022 22:20:18
giriqfky / giriqfky
0644
class-wp-optimize-page-cache-preloader.php
23.122 KB
May 01 2025 14:24:58
giriqfky / giriqfky
0644
class-wpo-cache-config.php
7.941 KB
May 01 2025 14:24:58
giriqfky / giriqfky
0644
class-wpo-cache-rules.php
16.546 KB
May 01 2025 14:24:58
giriqfky / giriqfky
0644
class-wpo-load-url-task.php
1.398 KB
June 03 2022 22:20:18
giriqfky / giriqfky
0644
class-wpo-page-cache.php
55.66 KB
May 06 2025 14:16:56
giriqfky / giriqfky
0644
file-based-page-cache-functions.php
56.738 KB
June 02 2025 17:15:44
giriqfky / giriqfky
0644
file-based-page-cache.php
0.623 KB
May 01 2025 14:24:58
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF