~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-includes/cache.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:50:12 UTC
  • mfrom: (1.1.18 upstream)
  • Revision ID: barry.price@canonical.com-20160817045012-qfui81zhqnqv2ba9
Merge WP4.6 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
/**
3
3
 * Object Cache API
4
4
 *
5
 
 * @link https://codex.wordpress.org/Function_Reference/WP_Cache
 
5
 * @link https://codex.wordpress.org/Class_Reference/WP_Object_Cache
6
6
 *
7
7
 * @package WordPress
8
8
 * @subpackage Cache
200
200
}
201
201
 
202
202
/**
203
 
 * Switches the interal blog ID.
 
203
 * Switches the internal blog ID.
204
204
 *
205
205
 * This changes the blog id used to create keys in blog specific groups.
206
206
 *
264
264
 * @global WP_Object_Cache $wp_object_cache Object cache global instance.
265
265
 */
266
266
function wp_cache_reset() {
267
 
        _deprecated_function( __FUNCTION__, '3.5' );
 
267
        _deprecated_function( __FUNCTION__, '3.5.0' );
268
268
 
269
269
        global $wp_object_cache;
270
270
 
344
344
        private $multisite;
345
345
 
346
346
        /**
347
 
         * Makes private properties readable for backwards compatibility.
 
347
         * Makes private properties readable for backward compatibility.
348
348
         *
349
349
         * @since 4.0.0
350
350
         * @access public
357
357
        }
358
358
 
359
359
        /**
360
 
         * Makes private properties settable for backwards compatibility.
 
360
         * Makes private properties settable for backward compatibility.
361
361
         *
362
362
         * @since 4.0.0
363
363
         * @access public
371
371
        }
372
372
 
373
373
        /**
374
 
         * Makes private properties checkable for backwards compatibility.
 
374
         * Makes private properties checkable for backward compatibility.
375
375
         *
376
376
         * @since 4.0.0
377
377
         * @access public
384
384
        }
385
385
 
386
386
        /**
387
 
         * Makes private properties un-settable for backwards compatibility.
 
387
         * Makes private properties un-settable for backward compatibility.
388
388
         *
389
389
         * @since 4.0.0
390
390
         * @access public
631
631
         * @see switch_to_blog()
632
632
         */
633
633
        public function reset() {
634
 
                _deprecated_function( __FUNCTION__, '3.5', 'switch_to_blog()' );
 
634
                _deprecated_function( __FUNCTION__, '3.5.0', 'switch_to_blog()' );
635
635
 
636
636
                // Clear out non-global caches since the blog ID has changed.
637
637
                foreach ( array_keys( $this->cache ) as $group ) {
697
697
        }
698
698
 
699
699
        /**
700
 
         * Switches the interal blog ID.
 
700
         * Switches the internal blog ID.
701
701
         *
702
702
         * This changes the blog ID used to create keys in blog specific groups.
703
703
         *