#14379 closed defect (bug) (fixed)
Add cache invalidation to get_blogs_of_user()
| Reported by: | ryan | Owned by: | ryan |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | Users | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Instead of doing proper cache invalidation, get_blogs_of_user() sets a 5 second timeout on its cache. This results in lots of unnecessary queries. get_blogs_of_user() should set its cache without expiration and do invalidation where needed. Also, it should cache on a list blog ids. There is no need to cache what the get_blog_details() cache is already caching.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [15833]) Cache invalidation for get_blogs_of_user(). fixes #14379