gitea/models/user
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
..
avatar_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
avatar.go Return default avatar url when user id is zero rather than updating database (#34094) 2025-04-02 01:03:27 +00:00
badge.go
block.go
email_address_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
email_address.go Support choose email when creating a commit via web UI (#33432) 2025-01-30 01:24:57 +00:00
error.go
external_login_user.go
follow_test.go
follow.go
list.go
main_test.go
must_change_password.go Refactor error system (#33771) 2025-03-03 05:36:10 +00:00
openid_test.go
openid.go Refactor user package (#33423) 2025-01-29 01:14:35 +02:00
redirect_test.go
redirect.go
search.go enable staticcheck QFxxxx rules (#34064) 2025-03-29 17:32:28 -04:00
setting_keys.go Add file tree to file view page (#32721) 2025-03-15 16:26:49 +08:00
setting_test.go Enable testifylint rules (#34075) 2025-03-31 01:53:48 -04:00
setting.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
user_list.go Small refactor to reduce unnecessary database queries and remove duplicated functions (#33779) 2025-03-04 18:25:20 +00:00
user_system_test.go Refactor user & avatar (#33433) 2025-01-30 07:33:50 +08:00
user_system.go Fix some migration and repo name problems (#33986) 2025-03-24 20:26:58 -07:00
user_test.go Check user/org repo limit instead of doer (#34147) 2025-04-07 23:45:31 -07:00
user_update.go
user.go Cache GPG keys, emails and users when list commits (#34086) 2025-04-09 16:34:38 +00:00