bp_core_get_incremented_cache( string $key, string $group )

Gets a value that has been cached using an incremented key.

Description

A utility function for use by query methods like BP_Activity_Activity::get().

See also

Parameters

$key

(Required) Unique key for the query. Usually a SQL string.

$group

(Required) Cache group. Eg 'bp_activity'.

Return

(array|bool) False if no cached values are found, otherwise an array of IDs.

Source

File: bp-core/bp-core-cache.php

function bp_core_get_incremented_cache( $key, $group ) {
	$cache_key = bp_core_get_incremented_cache_key( $key, $group );
	return wp_cache_get( $cache_key, $group );
}

Changelog

Changelog
Version Description
BuddyPress 2.7.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.