Changeset 32539
- Timestamp:
- 05/22/2015 04:23:15 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/cache.php
r32528 r32539 13 13 * 14 14 * @since 2.0.0 15 * @uses $wp_object_cache Object Cache Class16 * @ see WP_Object_Cache::add()15 * 16 * @global WP_Object_Cache $wp_object_cache 17 17 * 18 18 * @param int|string $key The cache key to use for retrieval later … … 48 48 * 49 49 * @since 3.3.0 50 * @uses $wp_object_cache Object Cache Class51 * @ see WP_Object_Cache::decr()50 * 51 * @global WP_Object_Cache $wp_object_cache 52 52 * 53 53 * @param int|string $key The cache key to increment … … 66 66 * 67 67 * @since 2.0.0 68 * @uses $wp_object_cache Object Cache Class69 * @ see WP_Object_Cache::delete()68 * 69 * @global WP_Object_Cache $wp_object_cache 70 70 * 71 71 * @param int|string $key What the contents in the cache are called … … 83 83 * 84 84 * @since 2.0.0 85 * @uses $wp_object_cache Object Cache Class86 * @ see WP_Object_Cache::flush()85 * 86 * @global WP_Object_Cache $wp_object_cache 87 87 * 88 88 * @return bool False on failure, true on success … … 98 98 * 99 99 * @since 2.0.0 100 * @uses $wp_object_cache Object Cache Class101 * @ see WP_Object_Cache::get()100 * 101 * @global WP_Object_Cache $wp_object_cache 102 102 * 103 103 * @param int|string $key What the contents in the cache are called … … 118 118 * 119 119 * @since 3.3.0 120 * @uses $wp_object_cache Object Cache Class121 * @ see WP_Object_Cache::incr()120 * 121 * @global WP_Object_Cache $wp_object_cache 122 122 * 123 123 * @param int|string $key The cache key to increment … … 136 136 * 137 137 * @since 2.0.0 138 * @global $wp_object_cache WordPress Object Cache instance139 * @ uses WP_Object_Cache138 * 139 * @global WP_Object_Cache $wp_object_cache 140 140 */ 141 141 function wp_cache_init() { … … 147 147 * 148 148 * @since 2.0.0 149 * @uses $wp_object_cache Object Cache Class150 * @ see WP_Object_Cache::replace()149 * 150 * @global WP_Object_Cache $wp_object_cache 151 151 * 152 152 * @param int|string $key What to call the contents in the cache … … 167 167 * @since 2.0.0 168 168 * 169 * @uses $wp_object_cache Object Cache Class 170 * @see WP_Object_Cache::set() 169 * @global WP_Object_Cache $wp_object_cache 171 170 * 172 171 * @param int|string $key What to call the contents in the cache … … 189 188 * @since 3.5.0 190 189 * 190 * @global WP_Object_Cache $wp_object_cache 191 * 191 192 * @param int $blog_id Blog ID 192 193 */ … … 201 202 * 202 203 * @since 2.6.0 204 * 205 * @global WP_Object_Cache $wp_object_cache 203 206 * 204 207 * @param string|array $groups A group or an array of groups to add … … 235 238 * @since 2.6.0 236 239 * @deprecated 3.5.0 240 * 241 * @global WP_Object_Cache $wp_object_cache 237 242 */ 238 243 function wp_cache_reset() { … … 479 484 * @since 2.0.0 480 485 * 481 * @return boolAlways returns true486 * @return true Always returns true 482 487 */ 483 488 public function flush() { 484 $this->cache = array 489 $this->cache = array(); 485 490 486 491 return true; … … 686 691 * 687 692 * @since 2.0.8 693 * 694 * @global int $blog_id 688 695 */ 689 696 public function __construct() {
Note: See TracChangeset
for help on using the changeset viewer.