Home / APIs / _get_non_cached_ids() – Retrieve ids that are not already present in the cache.

You appear to be a bot. Output may be restricted

Description

Retrieve ids that are not already present in the cache.

Usage

$array = _get_non_cached_ids( $object_ids, $cache_key );

Parameters

$object_ids
( array ) required – ID list.
$cache_key
( string ) required – The cache bucket to check against.

Returns

array List of ids not present in the cache.

Source

File name: wordpress/wp-includes/functions.php
Lines: 1 to 11 of 11

function _get_non_cached_ids( $object_ids, $cache_key ) {
  $clean = array();
  foreach ( $object_ids as $id ) {
    $id = (int) $id;
    if ( !wp_cache_get( $id, $cache_key ) ) {
      $clean[] = $id;
    }
  }

  return $clean;
}
 

 View on GitHub View on Trac

Published: 12th March 2017 | Last updated: 12th March 2017

Information

Function name: _get_non_cached_ids
Plugin ref: WordPress
Version: 5.0.3
Sourcefile: wp-includes/functions.php
File ref: wp-includes/functions.php
API type: private
Deprecated?: No
API Letters: _,C,G,I,N

  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Sites
  • Sitemap
  • Blog
WooCommerce a2z WooCommerce a2z
WooCommerce

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins