Skip to:
Content

BuddyPress.org

Changes between Version 1 and Version 2 of Ticket #7569, comment 3


Ignore:
Timestamp:
07/13/2017 06:03:32 PM (5 years ago)
Author:
r-a-y
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7569, comment 3

    v1 v2  
    1212
    1313I guess what would be better is to introduce a bulk read / unread method for the Notifications component so we can just mark a bunch of messages in bulk with one DB query.  Currently, we have to do a loop through a message thread and then mark each mesasge one at a time.
     14
     15Edit: `BP_Notification_Notification:mark_all_for_user()` seems like it can work for bulk operations.  We might want to switch to that instead.