#6445 closed defect (bug) (fixed)
Notifications: Invalidate cache when updating a notification
| Reported by: | r-a-y | Owned by: | johnjamesjacoby |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.3 |
| Component: | Toolbar & Notifications | Version: | 1.9 |
| Severity: | normal | Keywords: | has-patch |
| Cc: |
Description
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 9887: