WP_CLI

WpHttpCacheManager::whitelist_url()publicWP-CLI 1.0

whitelist a url

Method of the class: WpHttpCacheManager{}

No Hooks.

Return

null. Nothing.

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.8.0-alpha

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