WP_CLI

WpHttpCacheManager::whitelist_urlpublicWP-CLI 1.0

whitelist a url

Method of the class: WpHttpCacheManager{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WpHttpCacheManager = new WpHttpCacheManager();
$WpHttpCacheManager->whitelist_url( $url, $key, $ttl );
$url(string) (required)
.
$key(string)
.
Default: null
$ttl(int)
.
Default: null

WpHttpCacheManager::whitelist_url() code WP-CLI 2.13.0-alpha

public function whitelist_url( $url, $key = null, $ttl = null ) {
	$key                     = $key ? : $url;
	$this->whitelist[ $url ] = [
		'key' => $key,
		'ttl' => $ttl,
	];
}