Метод | Описание | |
---|---|---|
__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 ( ) |
protected get_purge_urls_for_term ( object $term ) : array | ||
$term | object | A WP term object |
Результат | array | An array of URLs to be purged |
public queue_old_permalink_purge ( integer $post_ID, WP_Post $post_after, WP_Post $post_before ) : void | ||
$post_ID | integer | The post ID of update post |
$post_after | WP_Post | The post object as it looks after the update |
$post_before | WP_Post | The post object as it looked before the update |
Результат | void |
public queue_purge_url ( string $url ) : boolean | ||
$url | string | The specific URL to purge the cache for |
Результат | boolean | True on success |
public queue_terms_purges ( array $ids, string $taxonomy ) | ||
$ids | array | An array of term IDs. |
$taxonomy | string | Taxonomy slug. |