Changeset 13054 for trunk/wp-includes/cache.php
- Timestamp:
- 02/11/2010 04:58:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/cache.php
r9740 r13054 200 200 * @since 2.0.0 201 201 */ 202 var $non_exist ant_objects = array ();202 var $non_existent_objects = array (); 203 203 204 204 /** … … 239 239 $group = 'default'; 240 240 241 if (false !== $this->get($id, $group , false))241 if (false !== $this->get($id, $group)) 242 242 return false; 243 243 … … 253 253 * 254 254 * On success the group and the id will be added to the 255 * $non_exist ant_objects property in the class.255 * $non_existent_objects property in the class. 256 256 * 257 257 * @since 2.0.0 … … 267 267 $group = 'default'; 268 268 269 if (!$force && false === $this->get($id, $group , false))269 if (!$force && false === $this->get($id, $group)) 270 270 return false; 271 271 272 272 unset ($this->cache[$group][$id]); 273 $this->non_exist ant_objects[$group][$id] = true;273 $this->non_existent_objects[$group][$id] = true; 274 274 return true; 275 275 } … … 295 295 * are returned. 296 296 * 297 * On failure, the $non_exist ant_objects property is checked and if the297 * On failure, the $non_existent_objects property is checked and if the 298 298 * cache group and ID exist in there the cache misses will not be 299 * incremented. If not in the nonexist ant objects property, then the cache299 * incremented. If not in the nonexistent objects property, then the cache 300 300 * misses will be incremented and the cache group and ID will be added to 301 * the nonexist ant objects.301 * the nonexistent objects. 302 302 * 303 303 * @since 2.0.0 … … 320 320 } 321 321 322 if ( isset ($this->non_exist ant_objects[$group][$id]) )322 if ( isset ($this->non_existent_objects[$group][$id]) ) 323 323 return false; 324 324 325 $this->non_exist ant_objects[$group][$id] = true;325 $this->non_existent_objects[$group][$id] = true; 326 326 $this->cache_misses += 1; 327 327 return false; … … 344 344 $group = 'default'; 345 345 346 if (false === $this->get($id, $group , false))346 if (false === $this->get($id, $group)) 347 347 return false; 348 348 … … 382 382 $this->cache[$group][$id] = $data; 383 383 384 if(isset($this->non_exist ant_objects[$group][$id]))385 unset ($this->non_exist ant_objects[$group][$id]);384 if(isset($this->non_existent_objects[$group][$id])) 385 unset ($this->non_existent_objects[$group][$id]); 386 386 387 387 return true;
Note: See TracChangeset
for help on using the changeset viewer.