Ticket #14379 (closed defect (bug): fixed)

Opened 22 months ago

Last modified 19 months ago

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:

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

14379.diff Download (3.9 KB) - added by ryan 20 months ago.

Change History

  • Owner set to ryan
  • Status changed from new to assigned
  • Milestone changed from Awaiting Review to 3.1

ryan20 months ago

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [15833]) Cache invalidation for get_blogs_of_user(). fixes #14379

(In [16225]) Prime blogs of user cache from old cache to avoid mass DB requests on upgrade. see #14379

Note: See TracTickets for help on using tickets.