Метод | Описание | |
---|---|---|
__construct ( ) | The main constructor | |
admin_enqueue ( ) | Enqueue assets | |
admin_menu ( ) | Add the top-level admin menu | |
ajax_flush_group ( ) | Delete all cache keys in a cache group | |
ajax_get_instance ( ) | Attempt to output the server cache contents | |
ajax_get_item ( ) | Attempt to get a cached item | |
ajax_remove_item ( ) | Delete a single cache key in a specific group | |
clean_post ( integer $post_id ) | Clean a post's cached URLs | |
clean_url ( string $url = '' ) : boolean | Clear a cached URL | |
clear_group ( string $group = '' ) : integer | Clear all of the items in a cache group | |
do_item ( string $key, string $group ) | Output the contents of a cached item into a textarea | |
do_rows ( string $server = '' ) | Output the cache server contents in a table | |
help ( ) | Help text | |
init ( ) : WP_Spider_Cache_UI | Initialize the protected singleton | |
load ( ) | Check for actions | |
map_meta_cap ( array $caps = [], string $cap = '' ) | Map manage_cache capability | |
notice ( ) | Maybe output a notice to the user that action has taken place | |
page ( ) | Output the WordPress admin page | |
retrieve_keys ( string $server, integer $port = 11211 ) : array | Get all cache keys on a server | |
set_blog_ids ( ) | Check for network activation and init to add menu item. |
Метод | Описание | |
---|---|---|
bulk_actions ( ) : string | Return the bulk actions dropdown | |
check_nonce ( string $nonce = '' ) | Helper function to check nonce and avoid caching the request | |
do_row ( array $values = [], string $nonce = '' ) | Output a table row based on values | |
get_admin_type ( ) : string | Get the type of admin request this is | |
get_cache_key_links ( integer $blog_id, string $group = '', array $keys = [] ) | Output contents of cache group keys | |
get_flush_group_link ( integer $blog_id, string $group, string $nonce ) | Output a link used to flush an entire cache group | |
get_keymaps ( string $server = '' ) : array | Get the map of cache groups $ keys | |
get_no_results_row ( ) : string | Returns a table row used to show no results were found | |
get_refreshing_results_row ( ) : string | Returns a table row used to show results are loading | |
get_servers ( ) : array | Return list of servers, if function exists | |
maybe_clear_cache_group ( boolean $redirect = true ) | Maybe clear a cache group, based on user request | |
maybe_clear_user_cache ( boolean $redirect = true ) | Maybe clear a user's entire cache, based on user request | |
sanitize_key ( string $key = '' ) : string | Sanitize a user submitted cache group or key value |
public ajax_flush_group ( ) |
public ajax_get_instance ( ) |
public ajax_remove_item ( ) |
public static clean_post ( integer $post_id ) | ||
$post_id | integer |
public clear_group ( string $group = '' ) : integer | ||
$group | string | |
Результат | integer |
public static init ( ) : WP_Spider_Cache_UI | ||
Результат | WP_Spider_Cache_UI |
public map_meta_cap ( array $caps = [], string $cap = '' ) | ||
$caps | array | |
$cap | string |
public notice ( ) |
public set_blog_ids ( ) |