Property | Type | Description | |
---|---|---|---|
$auto_description_transient | The Automatic Description transient name. | ||
$ld_json_transient | The LD+Json script transient name. | ||
$sitemap_transient | The sitemap transient name. | ||
$theme_doing_it_right_transient | The Theme is doing the Title right transient name |
Method | Description | |
---|---|---|
delete_auto_description_frontpage_transient ( string $old_option ) : string | Delete transient for the automatic description for blog on save request. | |
delete_auto_description_transient ( mixed $page_id, string $taxonomy = '', string $type = null ) : boolean | Delete transient for the automatic description on requests. | |
delete_auto_description_transients_term ( integer $term_id, integer $tt_id, string $taxonomy, mixed $deleted_term = '' ) | Delete transient on term save/deletion. | |
delete_front_ld_json_transient ( ) : boolean | Flushes the home page LD+Json transient. | |
delete_ld_json_transient ( mixed $page_id, string $taxonomy = '', string | null $type = null ) : boolean | Delete transient for the LD+Json scripts on requests. | |
delete_sitemap_transient ( ) : boolean | Delete transient for sitemap on requests. | |
delete_sitemap_transient_permalink_updated ( ) : boolean | Checks whether the permalink structure is updated. | |
delete_theme_dir_transient ( string | object $value = null, array | object | null $options = null ) : boolean | Delete transient for the Theme doing it Right bool on special requests. | |
delete_transients_author ( integer $user_id ) | Delete transient on profile save. | |
delete_transients_post ( integer $post_id ) : boolean | null | Delete transient on post save. | |
generate_cache_key ( integer | string | boolean $page_id, string $taxonomy = '', string $type = null ) : string | Generate transient key based on query vars. | |
generate_front_page_cache_key ( string $type = '' ) : string | Returns the front page partial transient key. | |
get_transient ( string $transient ) : mixed | boolean | Get the value of the transient. | |
set_theme_dir_transient ( $dir = null ) | Sets transient for Theme doing it Right. | |
set_transient ( string $transient, string $value, integer $expiration = '' ) | Set the value of the transient. | |
setup_auto_description_transient ( integer | string | boolean $page_id, string $taxonomy = '', strgin $type = null ) | Setup vars for transients which require $page_id. | |
setup_ld_json_transient ( integer | string | boolean $page_id, string $taxonomy = '', string | null $type = null ) | Setup vars for transients which require $page_id. | |
setup_transient_names ( ) | Setup vars for general site transients. |
Method | Description | |
---|---|---|
__construct ( ) | Constructor, load parent constructor and set up caches. | |
add_cache_key_suffix ( $key = '' ) : string | Adds cache key suffix based on blog id and locale. | |
generate_taxonomial_cache_key ( integer $page_id = '', string $taxonomy = '' ) : string | Generates Cache key for taxonomial archives. |
protected __construct ( ) |
protected add_cache_key_suffix ( $key = '' ) : string | ||
return | string | the cache key. |
public delete_auto_description_frontpage_transient ( string $old_option ) : string | ||
$old_option | string | The previous blog description option. |
return | string | Previous option. |
public delete_front_ld_json_transient ( ) : boolean | ||
return | boolean | Whether it's flushed on current call. |
public delete_sitemap_transient ( ) : boolean | ||
return | boolean | true |
public delete_sitemap_transient_permalink_updated ( ) : boolean | ||
return | boolean | Whether if sitemap transient is deleted. |
public delete_theme_dir_transient ( string | object $value = null, array | object | null $options = null ) : boolean | ||
$value | string | object | The theme directory stylesheet location, or either WP_Theme/WP_Upgrader instance. |
$options | array | object | null | If set, the update options array or the Old theme WP_Theme instance. |
return | boolean | True on success, false on failure. |
public delete_transients_author ( integer $user_id ) | ||
$user_id | integer | The User ID that has been updated. |
public generate_front_page_cache_key ( string $type = '' ) : string | ||
$type | string | |
return | string | the front page transient key. |
public set_theme_dir_transient ( $dir = null ) |
public set_transient ( string $transient, string $value, integer $expiration = '' ) | ||
$transient | string | Transient name. Expected to not be SQL-escaped. |
$value | string | Transient value. Expected to not be SQL-escaped. |
$expiration | integer | Optional Transient expiration date, optional. Expected to not be SQL-escaped. |
public setup_transient_names ( ) |
protected $auto_description_transient |
protected $ld_json_transient |