Changeset 55741 for trunk/tests/phpunit/includes/object-cache.php
- Timestamp:
- 05/10/2023 09:09:06 AM (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/object-cache.php
r55581 r55741 326 326 switch ( $feature ) { 327 327 case 'get_multiple': 328 case 'flush_runtime': 328 329 return true; 329 330 default: 330 331 return false; 331 332 } 333 } 334 335 /** 336 * Removes all cache items from the in-memory runtime cache. 337 * 338 * @return bool True on success, false on failure. 339 */ 340 function wp_cache_flush_runtime() { 341 global $wp_object_cache; 342 return $wp_object_cache->flush_runtime(); 332 343 } 333 344 … … 1411 1422 1412 1423 return $result; 1424 } 1425 1426 /** 1427 * Clears the in-memory cache of all data leaving the external cache untouched. 1428 * 1429 * @return bool Always returns true. 1430 */ 1431 public function flush_runtime() { 1432 $this->cache = array(); 1433 1434 return true; 1413 1435 } 1414 1436
Note: See TracChangeset
for help on using the changeset viewer.