[buddypress-trac] [BuddyPress Trac] #6596: bp_notifications_mark_notification not clearing cache

buddypress-trac noreply at wordpress.org
Thu Aug 20 15:49:29 UTC 2015

#6596: bp_notifications_mark_notification not clearing cache
 Reporter:  thomaslhotta       |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  API                |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |
Changes (by boonebgorges):

 * keywords:   => reporter-feedback


 thomaslhotta - Thanks for the report. I've fixed the documentation issue
 in [10055].

 I can't reproduce the cache problem you're reporting. See
 `bp_notifications_clear_all_for_user_cache_before_update()`. It's true
 that, in this case, no `'user_id'` is passed. But this means that the
 `elseif ( ! empty( $where_args['id'] ) )` clause is triggered, which also
 clears the user cache. See [attachment:6596.diff] for a unit test.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6596#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list