PHP 클래스 WP_Spider_Cache_UI

부터: 2.0.0
파일 보기 프로젝트 열기: stuttter/wp-spider-cache

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

The main constructor
부터: 2.0.0
public __construct ( )

admin_enqueue() 공개 메소드

Enqueue assets
부터: 2.0.0
public admin_enqueue ( )

admin_menu() 공개 메소드

Add the top-level admin menu
부터: 2.0.0
public admin_menu ( )

ajax_flush_group() 공개 메소드

Delete all cache keys in a cache group
부터: 2.0.0
public ajax_flush_group ( )

ajax_get_instance() 공개 메소드

Attempt to output the server cache contents
부터: 2.0.0
public ajax_get_instance ( )

ajax_get_item() 공개 메소드

Attempt to get a cached item
부터: 2.0.0
public ajax_get_item ( )

ajax_remove_item() 공개 메소드

Delete a single cache key in a specific group
부터: 2.0.0
public ajax_remove_item ( )

clean_post() 공개 정적인 메소드

Clean a post's cached URLs
부터: 2.3.0
public static clean_post ( integer $post_id )
$post_id integer

clean_url() 공개 정적인 메소드

Clear a cached URL
부터: 2.3.0
public static clean_url ( string $url = '' ) : boolean
$url string
리턴 boolean

clear_group() 공개 메소드

Clear all of the items in a cache group
부터: 2.0.0
public clear_group ( string $group = '' ) : integer
$group string
리턴 integer

do_item() 공개 메소드

Output the contents of a cached item into a textarea
부터: 2.0.0
public do_item ( string $key, string $group )
$key string
$group string

do_rows() 공개 메소드

Output the cache server contents in a table
부터: 2.0.0
public do_rows ( string $server = '' )
$server string

help() 공개 메소드

Help text
부터: 2.1.0
public help ( )

init() 공개 정적인 메소드

Initialize the protected singleton
부터: 2.2.0
public static init ( ) : WP_Spider_Cache_UI
리턴 WP_Spider_Cache_UI

load() 공개 메소드

Check for actions
부터: 2.0.0
public load ( )

map_meta_cap() 공개 메소드

Map manage_cache capability
부터: 2.3.0
public map_meta_cap ( array $caps = [], string $cap = '' )
$caps array
$cap string

notice() 공개 메소드

Maybe output a notice to the user that action has taken place
부터: 2.0.0
public notice ( )

page() 공개 메소드

Output the WordPress admin page
부터: 2.0.0
public page ( )

retrieve_keys() 공개 메소드

Get all cache keys on a server
부터: 2.0.0
public retrieve_keys ( string $server, integer $port = 11211 ) : array
$server string
$port integer
리턴 array

set_blog_ids() 공개 메소드

Check for network activation and init to add menu item.
부터: 2.2.0
public set_blog_ids ( )