]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/cache.php
WordPress 4.2.4-scripts
[autoinstalls/wordpress.git] / wp-includes / cache.php
index 5264fe2144b799855f8ee1a43ae48c358f37ec9e..d75c82c669864cb597c1b191437d18db23aa26d4 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Object Cache API
  *
 /**
  * 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
  *
  * @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 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
  */
  * @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.
  */
 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;
 
         */
        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.
         *
        /**
         * Make private properties readable for backwards compatibility.
         *
@@ -664,6 +672,9 @@ class WP_Object_Cache {
         * @since 3.4.0
         *
         * @access protected
         * @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 ] ) );
         */
        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
         * 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;
         */
        public function __construct() {
                global $blog_id;