function wp_cache_get( $key, $group = '', $force = false ) {}

Retrieves the cache contents from the cache by key and group.


  • int|string $key: What the contents in the cache are called
  • string $group: Where the cache contents are grouped
  • bool $force: Whether to force an update of the local cache from the persistent cache (default is false)

Return values

returns:False on failure to retrieve contents or the cache contents on success

Source code

function wp_cache_get( $key, $group = '', $force = false ) {

	global $wp_object_cache;

	return $wp_object_cache->get( $key, $group, $force );



No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: