bp_core_delete_incremented_cache( string $key, string $group )
Delete 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
(bool) True on successful removal, false on failure.
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 ); }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.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.