Cache get_avatar_url on /followers page to avoid fetching every user full object #9282
Labels
Lead: @mekarpeles
Issues overseen by Mek (Staff: Program Lead) [managed]
Needs: Response
Issues which require feedback from lead
Priority: 2
Important, as time permits. [managed]
Theme: My Books
Theme: Performance
Issues related to UI or Server performance. [managed]
Currently, the My Followers & Following pages are making individual requests for every patron account on the page in order to fetch the
internetarchive
identifier required to craft their avatar url. Ideally, we'd be able to fetch these in bulk. At minimum, we should cache these values so they are more easily accessible.https://openlibrary.org/people/mekBot/followers
https://openlibrary.org/people/mekBot/following
See: https://github.com/internetarchive/openlibrary/pull/8607/files#r1496013460
The text was updated successfully, but these errors were encountered: