[ Index ] |
PHP Cross Reference of BuddyPress |
[Source view] [Print] [Project Stats]
Functions related to notifications caching.
File Size: | 129 lines (4 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
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. since: 2.3.0 param: int|string|array|bool $notification_ids Accepts a single notification_id, or a |
bp_notifications_clear_all_for_user_cache( $user_id = 0 ) X-Ref |
Clear all notifications cache for a given user ID. since: 2.3.0 param: int $user_id The user ID's cache to clear. |
bp_notifications_clear_all_for_user_cache_after_save( $notification ) X-Ref |
Invalidate 'all_for_user_' cache when saving. since: 2.0.0 param: BP_Notifications_Notification $notification Notification object. |
bp_notifications_clear_all_for_user_cache_before_delete( $args ) X-Ref |
Invalidate the 'all_for_user_' cache when deleting. since: 2.0.0 param: int $args Notification deletion arguments. |
bp_notifications_clear_all_for_user_cache_before_update( $update_args, $where_args ) X-Ref |
Invalidates 'all_for_user_' cache when updating. since: 2.3.0 param: array $update_args See BP_Notifications_Notification::update() for description. param: array $where_args See BP_Notifications_Notification::update() for description. |
Generated: Sat Nov 9 01:00:55 2024 | Cross-referenced by PHPXref 0.7.1 |