Switch language

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




wp_cache_set [ WordPress Function ]

wp_cache_set ( $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::set()
Returns:
  • (bool) False if cache key and group already exist, true on success
Defined at:



Saves the data to the cache.

Source


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

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

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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