![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/plugins/wp-rocket/inc/Engine/Common/PerformanceHints/WarmUp/ |
<?php declare(strict_types=1); namespace WP_Rocket\Engine\Common\PerformanceHints\WarmUp; use WP_Rocket\Engine\Common\Queue\AbstractASQueue; class Queue extends AbstractASQueue { /** * PerformanceHints queue group * * @var string */ protected $group = 'rocket-performance-hints-warmup'; /** * Add an async job to warm up home links * * @return int */ public function add_job_warmup(): int { return $this->add_async( 'rocket_job_warmup' ); } /** * Add an async job to send URL to SaaS for warmup * * @param string $url URL to warm up. * * @return int */ public function add_job_warmup_url( string $url ): int { return $this->add_async( 'rocket_job_warmup_url', [ $url ] ); } }