wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_cache_add_multiple › WordPress Function

Od6.0.0
Przestarzałyn/a
wp_cache_add_multiple ( $data, $group = '', $expire = 0 )
Parametry: (3)
  • (array) $data Array of keys and values to be set.
    Wymagane: Tak
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Wymagane: Nie
    Domyślny: (puste)
  • (int) $expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration).
    Wymagane: Nie
    Domyślny:
Zobacz:
  • WP_Object_Cache::add_multiple()
Powrót:
  • (bool[]) Array of return values, grouped by key. Each value is either true on success, or false if cache key and group already exist.
Zdefiniowane na:
Codex:

Adds multiple values to the cache in one call.



Źródło

function wp_cache_add_multiple( array $data, $group = '', $expire = 0 ) {
	global $wp_object_cache;

	return $wp_object_cache->add_multiple( $data, $group, $expire );
}