Skip to:

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#4765 closed defect (bug) (duplicate)

BP_Activity_Activity::delete_activity_meta_entries doesn't clear cache

Reported by: djpaul's profile DJPaul Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.2
Component: Activity Keywords:


BP_Activity_Activity::delete_activity_meta_entries() clears items from the activity meta table, but not from the wp_cache. This method is used in BP_Activity_Activity->delete().

To recreate: add an activity item, set some meta, use BP_Activity_Activity::delete_activity_meta_entries(), and then do bp_activity_get_meta(). The DB row will have been correctly deleted, but you'll get the value back from the cache.

Unit test is: BP_Tests_Activity_Class::test_delete_activity_meta_entries

Change History (2)

#1 @boonebgorges
11 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

Closing in favor of #4804, which has a patch.

#2 @boonebgorges
11 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.