You appear to be a bot. Output may be restricted
Description
Builds a key for the cached object using the blog_id, key, and group values.
Usage
WP_Object_Cache::buildKey( $key, $group );
Parameters
- $key
- ( string ) required – The key under which to store the value.
- $group
- ( string ) optional default: default – The group value appended to the $key.
Returns
void string
Source
File name: wordpress-develop-tests/phpunit/includes/object-cache.php
Lines:
1 to 14 of 14
public function buildKey( $key, $group = 'default' ) { if ( empty( $group ) ) { $group = 'default'; } if ( false !== array_search( $group, $this->global_groups, true ) ) { $prefix = $this->global_prefix; } else { $prefix = $this->blog_prefix; } return preg_replace( '/\s+/', '', WP_CACHE_KEY_SALT . "$prefix$group:$key" ); }