Changeset 18682 for trunk/wp-includes/cache.php
- Timestamp:
- 09/15/2011 08:28:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r18681 r18682 244 244 245 245 /** 246 * Cache objects that do not exist in the cache247 *248 * @var array249 * @access private250 * @since 2.0.0251 */252 var $non_existent_objects = array ();253 254 /**255 246 * The amount of times the cache data was already stored in the cache. 256 247 * … … 355 346 * by default. 356 347 * 357 * On success the group and the id will be added to the358 * $non_existent_objects property in the class.359 *360 348 * @since 2.0.0 361 349 * … … 374 362 375 363 unset ($this->cache[$group][$key]); 376 $this->non_existent_objects[$group][$key] = true;377 364 return true; 378 365 } … … 398 385 * are returned. 399 386 * 400 * On failure, the $non_existent_objects property is checked and if the 401 * cache group and key exist in there the cache misses will not be 402 * incremented. If not in the nonexistent objects property, then the cache 403 * misses will be incremented and the cache group and key will be added to 404 * the nonexistent objects. 387 * On failure, the number of cache misses will be incremented. 405 388 * 406 389 * @since 2.0.0 … … 424 407 } 425 408 426 if ( isset ($this->non_existent_objects[$group][$key]) )427 return false;428 429 $this->non_existent_objects[$group][$key] = true;430 409 $this->cache_misses += 1; 431 410 return false; … … 525 504 526 505 $this->cache[$group][$key] = $data; 527 528 if ( isset($this->non_existent_objects[$group][$key]) )529 unset ($this->non_existent_objects[$group][$key]);530 531 506 return true; 532 507 }
Note: See TracChangeset
for help on using the changeset viewer.