wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



wp_cache_get › WordPress Function

Depuis2.0.0
Dépréciéen/a
wp_cache_get ( $key, $group = '', $force = false, $found = null )
Paramètres: (4)
  • (int|string) $key The key under which the cache contents are stored.
    Requis: Oui
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Requis: Non
    Défaut: (vide)
  • (bool) $force Optional. Whether to force an update of the local cache from the persistent cache. Default false.
    Requis: Non
    Défaut: 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.
    Requis: Non
    Défaut: null
Voir:
  • WP_Object_Cache::get()
Retourne:
  • (mixed|false) The cache contents on success, false on failure to retrieve contents.
Défini(e) dans:
Codex:

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



Source

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

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