[buddypress-trac] [BuddyPress] #4765: BP_Activity_Activity::delete_activity_meta_entries doesn't clear cache

buddypress-trac noreply at wordpress.org
Sat Jan 12 13:43:06 UTC 2013


#4765: BP_Activity_Activity::delete_activity_meta_entries doesn't clear cache
--------------------------+----------------------------
 Reporter:  DJPaul        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Activity      |    Version:  1.2
 Severity:  normal        |   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

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


More information about the buddypress-trac mailing list