[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/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

  bp_messages_update_meta_cache()
  bp_messages_clear_cache_on_message_save()
  bp_messages_clear_cache_on_message_delete()
  bp_notices_clear_cache()

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.

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

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

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

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

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.
since: 2.0.0

bp_notices_clear_cache()   X-Ref
Invalidate cache for notices.

Currently, invalidates active notice cache.

since: 2.0.0



Generated: Thu Nov 21 01:00:57 2024 Cross-referenced by PHPXref 0.7.1