%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tradesc/www/relax/wp-content/plugins/wp-rocket/inc/Engine/Media/AboveTheFold/WarmUp/
Upload File :
Create Path :
Current File : /home/tradesc/www/relax/wp-content/plugins/wp-rocket/inc/Engine/Media/AboveTheFold/WarmUp/Queue.php

<?php
declare(strict_types=1);

namespace WP_Rocket\Engine\Media\AboveTheFold\WarmUp;

use WP_Rocket\Engine\Common\Queue\AbstractASQueue;

class Queue extends AbstractASQueue {
	/**
	 * ATF queue group
	 *
	 * @var string
	 */
	protected $group = 'rocket-atf-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 ] );
	}
}

Zerion Mini Shell 1.0