wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_cache_get › WordPress Function

Seit2.0.0
Veraltetn/v
wp_cache_get ( $key, $group = '', $force = false, $found = null )
Parameter: (4)
  • (int|string) $key The key under which the cache contents are stored.
    Erforderlich: Ja
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Erforderlich: Nein
    Standard: (leer)
  • (bool) $force Optional. Whether to force an update of the local cache from the persistent cache. Default false.
    Erforderlich: Nein
    Standard: false
  • (bool) $found Optional. Whether the key was found in the cache (passed by reference). Disambiguates a return of false, a storable value. Default null.
    Erforderlich: Nein
    Standard: null
Siehe:
  • WP_Object_Cache::get()
Gibt zurück:
  • (mixed|false) The cache contents on success, false on failure to retrieve contents.
Definiert in:
Codex:

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



Quellcode

function wp_cache_get( $key, $group = '', $force = false, &$found = null ) {
	global $wp_object_cache;

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