Changeset 55577
- Timestamp:
- 03/21/2023 05:00:21 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/includes/object-cache.php
r54942 r55577 978 978 979 979 $derived_key = $this->buildKey( $key, $group ); 980 $expiration = $this->sanitize_expiration( $expiration ); 980 981 // Add does not set the value if the key exists; mimic that here. 982 if ( isset( $this->cache[ $derived_key ] ) ) { 983 return false; 984 } 981 985 982 986 // If group is a non-Memcached group, save to runtime cache, not Memcached. 983 987 if ( in_array( $group, $this->no_mc_groups, true ) ) { 984 988 985 // Add does not set the value if the key exists; mimic that here.986 if ( isset( $this->cache[ $derived_key ] ) ) {987 return false;988 }989 990 989 $this->add_to_internal_cache( $derived_key, $value ); 991 990 992 991 return true; 993 992 } 993 994 $expiration = $this->sanitize_expiration( $expiration ); 994 995 995 996 // Save to Memcached.
Note: See TracChangeset
for help on using the changeset viewer.