#21595 closed defect (bug) (fixed)
get_blog_post() and get_blog_permalink() create duplicate caches that aren't invalidated
| Reported by: | ryan | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.5 |
| Component: | Cache API | Version: | 3.4.1 |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | Focuses: |
Description
Both of these copy per blog information to global caches and never invalidate that information when the sources change.
Attachments (4)
Change History (13)
#3
follow-up:
↓ 4
@
14 years ago
Actually, global-posts is invalidated at the end of clean_post_cache() so get_blog_post() isn't as bad as it first seemed.
#4
in reply to: ↑ 3
@
14 years ago
Replying to ryan:
Actually, global-posts is invalidated at the end of clean_post_cache() so get_blog_post() isn't as bad as it first seemed.
We can kill that line now, though. 21595.diff looks good.
Note:
See TracTickets
for help on using tickets.
get_blog_post() should also use switch_to_blog() like get_blog_permalink().
Persistent caching that we get via switch_to_blog() should be enough, no? The double-caching seems weird.