gitea/modules/cache
Lunny Xiao 4a5af4edca
Cache GPG keys, emails and users when list commits (#34086)
When list commits, some of the commits authors are the same at many
situations. But current logic will always fetch the same GPG keys from
database. This PR will cache the GPG keys, emails and users for the
context so that reducing the database queries.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-09 16:34:38 +00:00
..
cache_redis.go Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +00:00
cache_test.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
cache_twoqueue.go Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +00:00
cache.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
context_test.go Cache GPG keys, emails and users when list commits (#34086) 2025-04-09 16:34:38 +00:00
context.go Cache GPG keys, emails and users when list commits (#34086) 2025-04-09 16:34:38 +00:00
string_cache.go Refactor cache and disable go-chi cache (#30417) 2024-04-13 08:38:44 +00:00