[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-members/ -> bp-members-cache.php (summary)

Caching functions specific to BuddyPress Members.

File Size: 128 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  bp_members_prefetch_member_type()
  bp_members_clear_member_type_cache()
  bp_members_reset_activity_cache_incrementor()
  bp_members_delete_signup_cache()
  bp_members_delete_signup_cache_multiples()
  bp_members_reset_signup_cache_incrementor()

Functions
Functions that are not part of a class:

bp_members_prefetch_member_type( $bp_user_query )   X-Ref
Pre-fetch member type data when initializing a Members loop.

param: BP_User_Query $bp_user_query BP_User_Query object.
since: 2.2.0

bp_members_clear_member_type_cache( $user_id )   X-Ref
Clear the member_type cache for a user.

Called when the user is deleted or marked as spam.

param: int $user_id ID of the deleted user.
since: 2.2.0

bp_members_reset_activity_cache_incrementor()   X-Ref
Invalidate activity caches when a user's last_activity value is changed.

return: bool True on success, false on failure.
since: 2.7.0

bp_members_delete_signup_cache( $signup_id = 0 )   X-Ref
Bust signup caches when editing or deleting.

param: int $signup_id The ID of the signup affected.
since: 10.0.0

bp_members_delete_signup_cache_multiples( $signup_ids = array()   X-Ref
Bust signup caches for arrays of signup IDs.

param: array $signup_ids The IDs of the signups affected.
since: 10.0.0

bp_members_reset_signup_cache_incrementor()   X-Ref
Reset cache incrementor for BP_Signups.

This function invalidates all cached results of BP_Signup queries,
whenever one of the following events takes place:
- A record is created or updated.
- A record is deleted.

return: bool True on success, false on failure.
since: 10.0.0



Generated: Tue Feb 27 01:01:02 2024 Cross-referenced by PHPXref 0.7.1