Switch language

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




wp_cache_get [ WordPress Function ]

wp_cache_get ( $key, $group = '', $force = false, $found = null )
Parameters:
  • (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)
  • (&bool) $found Whether key was found in the cache. Disambiguates a return of false, a storable value.
Uses:
  • $wp_object_cache
See:
  • WP_Object_Cache::get()
Returns:
  • (bool|mixed) False on failure to retrieve contents or the cache contents on success
Defined at:



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

Source


<?php
function wp_cache_get$key$group ''$force false, &$found null ) {
    global 
$wp_object_cache;

    return 
$wp_object_cache->get$key$group$force$found );
}
?>

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