PHP 클래스 WPCOM_VIP_Cache_Manager, vip-mu-plugins-public

파일 보기 프로젝트 열기: Automattic/vip-mu-plugins-public 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
build_purge_request ( string $url, string $method ) : array Instead of using this method directly, please use the API functions provided; see api.php.
curl_multi ( $requests )
execute_purges ( )
get_manual_purge_link ( )
init ( )
instance ( )
manual_purge_message ( )
purge_site_cache ( $when = null )
queue_old_permalink_purge ( integer $post_ID, WP_Post $post_after, WP_Post $post_before ) : void Schedule purge of old permalink in case it was changed during post update and only if the post's status was publish before the update
queue_post_purge ( $post_id )
queue_purge_url ( string $url ) : boolean PURGE a single URL
queue_term_purge ( object | integer $term ) : boolean Purge the cache for a terms
queue_terms_purges ( array $ids, string $taxonomy ) Purge the cache for some terms

보호된 메소드들

메소드 설명
get_purge_urls_for_term ( object $term ) : array Get all URLs to be purged for a given term

비공개 메소드들

메소드 설명
can_purge_cache ( )

메소드 상세

__construct() 공개 메소드

public __construct ( )

build_purge_request() 공개 메소드

Instead of using this method directly, please use the API functions provided; see api.php.
public build_purge_request ( string $url, string $method ) : array
$url string A URL to PURGE
$method string
리턴 array

curl_multi() 공개 메소드

public curl_multi ( $requests )

execute_purges() 공개 메소드

public execute_purges ( )

get_purge_urls_for_term() 보호된 메소드

Get all URLs to be purged for a given term
protected get_purge_urls_for_term ( object $term ) : array
$term object A WP term object
리턴 array An array of URLs to be purged

init() 공개 메소드

public init ( )

instance() 공개 정적인 메소드

public static instance ( )

manual_purge_message() 공개 메소드

purge_site_cache() 공개 메소드

public purge_site_cache ( $when = null )

queue_post_purge() 공개 메소드

public queue_post_purge ( $post_id )

queue_purge_url() 공개 메소드

PURGE a single URL
public queue_purge_url ( string $url ) : boolean
$url string The specific URL to purge the cache for
리턴 boolean True on success

queue_term_purge() 공개 메소드

Purge the cache for a terms
public queue_term_purge ( object | integer $term ) : boolean
$term object | integer A WP Term object, or a term ID
리턴 boolean True on success

queue_terms_purges() 공개 메소드

Hooks the clean_term_cache action We do not respect requests to clear caches for the entire taxonomy, as this would be potentially hundreds or thousands of PURGE requests.
public queue_terms_purges ( array $ids, string $taxonomy )
$ids array An array of term IDs.
$taxonomy string Taxonomy slug.