Opened 11 years ago
Closed 11 years ago
#25545 closed defect (bug) (fixed)
Invalidate post cache when a user is removed from a blog
Reported by: | nprasath002 | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | minor | Version: | 3.0 |
Component: | Cache API | Keywords: | has-patch |
Focuses: | Cc: |
Description
In remove_user_from_blog invalidate post cache when a user is removed from a blog
Attachments (6)
Change History (17)
#4
@
11 years ago
- Owner set to wonderboymusic
- Resolution set to fixed
- Status changed from new to closed
In 27087:
#5
@
11 years ago
Would array_walk( $post_ids, 'clean_post_cache' );
be more appropriate here than array_map(...)
, to make it clearer that we don't expect/need the return array?
#6
@
11 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
- Version changed from 3.6.1 to 3.0
In r27087 you're invalidating caches for all the existing posts of the receiving user. We really just need the ones that belong(ed) to the user being removed. Also this seems like a no-brainer for links as well and since they're still in core, let's clean those caches too. See 25545.3.diff.
#8
@
11 years ago
- Resolution fixed deleted
- Status changed from closed to reopened
Hi, sorry :) I'm having second thoughts about the INs in the queries in r27152, even though they're probably faster, they won't scale with large amounts of posts. Let's change those back. See 25545.4.diff.
Good catch, @nprasath002. I added a new patch here: 25545.diff