Changeset 7025 for trunk/src/includes/common/engagements.php
- Timestamp:
- 12/12/2019 05:49:08 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/common/engagements.php
r7024 r7025 612 612 private function get_cache_key( $meta_key = '', $object_id = 0 ) { 613 613 614 // No negative numbers in cache keys 614 // No negative numbers in cache keys (zero is weird, but not disallowed) 615 615 $object_id = absint( $object_id ); 616 616 … … 664 664 $cache_key = $this->get_cache_key( $meta_key, $object_id ); 665 665 666 return wp_cache_get( $cache_key, 'bbpress_ posts' );666 return wp_cache_get( $cache_key, 'bbpress_engagements' ); 667 667 } 668 668 … … 684 684 $user_ids = $this->parse_comma_list( $user_ids ); 685 685 686 return wp_cache_set( $cache_key, $user_ids, 'bbpress_ users' );686 return wp_cache_set( $cache_key, $user_ids, 'bbpress_engagements' ); 687 687 } 688 688 … … 703 703 $cache_key = $this->get_cache_key( $meta_key, $object_id ); 704 704 705 return wp_cache_delete( $cache_key, 'bbpress_ users' );705 return wp_cache_delete( $cache_key, 'bbpress_engagements' ); 706 706 } 707 707
Note: See TracChangeset
for help on using the changeset viewer.