🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 APIClient.php

📁 Path: ./wp-content/plugins/wp-rocket/inc/Engine/Common/PerformanceHints/WarmUp/APIClient.php
📊 Size: 705 B
🔒 Perm: 0644
📝 MIME: text/x-php
<?php
declare(strict_types=1);

namespace WP_Rocket\Engine\Common\PerformanceHints\WarmUp;

use WP_Rocket\Engine\Common\JobManager\APIHandler\APIClient as BaseAPIClient;
use WP_Rocket\Engine\Common\Utils;

class APIClient extends BaseAPIClient {

	/**
	 * Send the link to SaaS.
	 *
	 * @param string $url Url to be sent.
	 * @param string $device Device type.
	 *
	 * @return array
	 */
	public function add_to_performance_hints_queue( string $url, $device = 'desktop' ): array {
		$is_home = Utils::is_home( $url );

		$config = [
			'optimization_list' => '',
			'is_home'           => $is_home,
			'is_mobile'         => 'mobile' === $device,
		];

		return $this->add_to_queue( $url, $config );
	}
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨