Archived
Updates
This commit is contained in:
1 parent
70d2335bba
commit
7428b67da5
1086 files changed
+94145
-59082
No files matched your search
+14
-4
@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Object Cache API
|
||||
*
|
||||
* @link http://codex.wordpress.org/Function_Reference/WP_Cache
|
||||
* @link https://codex.wordpress.org/Function_Reference/WP_Cache
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Cache
|
||||
@@ -103,7 +103,7 @@ function wp_cache_flush() {
|
||||
* @param int|string $key What the contents in the cache are called
|
||||
* @param string $group Where the cache contents are grouped
|
||||
* @param bool $force Whether to force an update of the local cache from the persistent cache (default is false)
|
||||
* @param &bool $found Whether key was found in the cache. Disambiguates a return of false, a storable value.
|
||||
* @param bool &$found Whether key was found in the cache. Disambiguates a return of false, a storable value.
|
||||
* @return bool|mixed False on failure to retrieve contents or the cache
|
||||
* contents on success
|
||||
*/
|
||||
@@ -217,7 +217,6 @@ function wp_cache_add_global_groups( $groups ) {
|
||||
*/
|
||||
function wp_cache_add_non_persistent_groups( $groups ) {
|
||||
// Default cache doesn't persist so nothing to do here.
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -306,6 +305,15 @@ class WP_Object_Cache {
|
||||
*/
|
||||
private $blog_prefix;
|
||||
|
||||
/**
|
||||
* Holds the value of `is_multisite()`
|
||||
*
|
||||
* @var bool
|
||||
* @access private
|
||||
* @since 3.5.0
|
||||
*/
|
||||
private $multisite;
|
||||
|
||||
/**
|
||||
* Make private properties readable for backwards compatibility.
|
||||
*
|
||||
@@ -664,6 +672,9 @@ class WP_Object_Cache {
|
||||
* @since 3.4.0
|
||||
*
|
||||
* @access protected
|
||||
* @param string $key
|
||||
* @param string $group
|
||||
* @return bool
|
||||
*/
|
||||
protected function _exists( $key, $group ) {
|
||||
return isset( $this->cache[ $group ] ) && ( isset( $this->cache[ $group ][ $key ] ) || array_key_exists( $key, $this->cache[ $group ] ) );
|
||||
@@ -673,7 +684,6 @@ class WP_Object_Cache {
|
||||
* Sets up object properties; PHP 5 style constructor
|
||||
*
|
||||
* @since 2.0.8
|
||||
* @return null|WP_Object_Cache If cache is disabled, returns null.
|
||||
*/
|
||||
public function __construct() {
|
||||
global $blog_id;
|
||||
|
||||
Reference in new issue
Block a user