[ Index ]

PHP Cross Reference of BuddyPress




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

Functions related to notifications caching.

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

Defines 5 functions


Functions that are not part of a class:

bp_notifications_update_meta_cache( $notification_ids = false )   X-Ref
Slurp up metadata for a set of notifications.

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

param: int|string|array|bool $notification_ids Accepts a single notification_id, or a
since: 2.3.0

bp_notifications_clear_all_for_user_cache( $user_id = 0 )   X-Ref
Clear all notifications cache for a given user ID.

param: int $user_id The user ID's cache to clear.
since: 2.3.0

bp_notifications_clear_all_for_user_cache_after_save( $notification )   X-Ref
Invalidate 'all_for_user_' cache when saving.

param: BP_Notifications_Notification $notification Notification object.
since: 2.0.0

bp_notifications_clear_all_for_user_cache_before_delete( $args )   X-Ref
Invalidate the 'all_for_user_' cache when deleting.

param: int $args Notification deletion arguments.
since: 2.0.0

bp_notifications_clear_all_for_user_cache_before_update( $update_args, $where_args )   X-Ref
Invalidates 'all_for_user_' cache when updating.

param: array $update_args See BP_Notifications_Notification::update() for description.
param: array $where_args  See BP_Notifications_Notification::update() for description.
since: 2.3.0

Generated: Tue May 24 01:00:56 2022 Cross-referenced by PHPXref 0.7.1