bp_core_delete_incremented_cache( string $key, string $group )

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

Description Description

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

See also See also

Top ↑

Parameters Parameters


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


(string) (Required) Cache group. Eg 'bp_activity'.

Top ↑

Return Return

(bool) True on successful removal, false on failure.

Top ↑

Source Source

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

function bp_core_delete_incremented_cache( $key, $group ) {
	$cache_key = bp_core_get_incremented_cache_key( $key, $group );
	return wp_cache_delete( $cache_key, $group );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.