wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema
_get_non_cached_ids › WordPress Function
Desde3.4.0
Obsoleton/a
› _get_non_cached_ids ( $object_ids, $cache_group )
Parâmetros: (2) |
|
Retorna: |
|
Definido em: |
|
Codex: | |
Log de mudanças: |
|
Retrieves IDs that are not already present in the cache.
Funções relacionadas: wp_get_nocache_headers, get_nonauthor_user_ids, get_all_category_ids, get_cat_id, get_the_id
Fonte
function _get_non_cached_ids( $object_ids, $cache_group ) { $object_ids = array_filter( $object_ids, '_validate_cache_id' ); $object_ids = array_unique( array_map( 'intval', $object_ids ), SORT_NUMERIC ); if ( empty( $object_ids ) ) { return array(); } $non_cached_ids = array(); $cache_values = wp_cache_get_multiple( $object_ids, $cache_group ); foreach ( $cache_values as $id => $value ) { if ( false === $value ) { $non_cached_ids[] = (int) $id; } } return $non_cached_ids; }