#4765 closed defect (bug) (duplicate)
BP_Activity_Activity::delete_activity_meta_entries doesn't clear cache
| Reported by: | DJPaul | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Activity | Version: | 1.2 |
| Severity: | normal | Keywords: | |
| Cc: |
Description
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Closing in favor of #4804, which has a patch.