Advertisements

wp_cache_replace

Definition:
function wp_cache_replace($key, $data, $group = '', $expire = 0) {}

Replaces the contents of the cache with new data.

Parameters

  • int|string $key: What to call the contents in the cache
  • mixed $data: The contents to store in the cache
  • string $group: Where to group the cache contents
  • int $expire: When to expire the cache contents

Return values

returns:False if cache key and group already exist, true on success

Source code

function wp_cache_replace($key, $data, $group = '', $expire = 0) {

	global $wp_object_cache;



	return $wp_object_cache->replace($key, $data, $group, $expire);

}

3451

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: