[buddypress-trac] [BuddyPress Trac] #6445: Notifications: Invalidate cache when updating a notification

buddypress-trac noreply at wordpress.org
Wed May 20 08:25:35 UTC 2015


#6445: Notifications: Invalidate cache when updating a notification
---------------------------------------+-----------------------
 Reporter:  r-a-y                      |      Owner:
     Type:  defect (bug)               |     Status:  new
 Priority:  normal                     |  Milestone:  2.4
Component:  Component - Notifications  |    Version:  1.9
 Severity:  normal                     |   Keywords:  has-patch
---------------------------------------+-----------------------
 If you're on your notifications page and you click on the "Read" action
 link for a notification, the user's notifications cache isn't invalidated.

 Problem is due to not pulling up the user ID before updating the
 notification.

 I've attached a patch with unit tests.

 The patch adds a new hook - `'bp_notification_before_update'` - which
 mirrors the other `before_save` and `before_delete` hooks and moves the
 cache clearing to `bp-notifications-cache.php`.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6445>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list