| Server IP : 87.229.120.60 / Your IP : 216.73.216.86 Web Server : Apache System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64 User : server ( 1002) PHP Version : 8.3.20 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/faktorteam/www/wp-content/plugins/wp-rocket/inc/Engine/Preload/ |
Upload File : |
<?php
namespace WP_Rocket\Engine\Preload;
/**
* Extends the background process class for the partial preload background process.
*
* @since 3.2
* @author Remy Perona
*
* @see WP_Background_Process
*/
class PartialProcess extends AbstractProcess {
/**
* Specific action identifier for partial preload
*
* @since 3.2
* @var string
*/
protected $action = 'partial_preload';
/**
* Preload the URL provided by $item.
*
* @since 3.2
* @since 3.5 $item can be an array.
* @author Remy Perona
*
* @param array|string $item {
* The item to preload: an array containing the following values.
* A string is allowed for backward compatibility (for the URL).
*
* @type string $url The URL to preload.
* @type bool $mobile True when we want to send a "mobile" user agent with the request.
* @type string $source An identifier related to the source of the preload (e.g. RELOAD_ID).
* }
* @return bool False.
*/
protected function task( $item ) {
$this->maybe_preload( $item );
return false;
}
}