Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_cache_replace [ WordPress Function ]

wp_cache_replace ( $key, $data, $group = '', $expire = 0 )
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
Uses:
  • $wp_object_cache
See:
  • WP_Object_Cache::replace()
Returns:
  • (bool) False if cache key and group already exist, true on success
Defined at:



Replaces the contents of the cache with new data.

Source


<?php
function wp_cache_replace($key$data$group ''$expire 0) {
    global 
$wp_object_cache;

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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics