[ Index ]

PHP Cross Reference of BuddyPress




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

BuddyPress Messages Caching. Caching functions handle the clearing of cached objects and pages on specific actions throughout BuddyPress.

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

Defines 4 functions


Functions that are not part of a class:

bp_messages_update_meta_cache( $message_ids = false )   X-Ref
Slurp up metadata for a set of messages.

It grabs all message meta associated with all of the messages passed in
$message_ids and adds it to WP cache. This improves efficiency when using
message meta within a loop context.

since: 2.2.0
param: int|string|array|bool $message_ids Accepts a single message_id, or a

bp_messages_clear_cache_on_message_save( $message )   X-Ref
Clear message cache after a message is saved.

since: 2.0.0
param: BP_Messages_Message $message Message being saved.

bp_messages_clear_cache_on_message_delete( $thread_ids, $user_id )   X-Ref
Clear message cache after a message thread is deleted.

since: 2.0.0
param: int|array $thread_ids If single thread, the thread ID.
param: int       $user_id    ID of the user that the threads were deleted for.

bp_notices_clear_cache()   X-Ref
Invalidate cache for notices.

Currently, invalidates active notice cache.

since: 2.0.0

Generated: Tue Jun 25 01:00:59 2024 Cross-referenced by PHPXref 0.7.1