You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models/user
Lunny Xiao 9df573bddc
Fix context cache bug & enable context cache for dashabord commits' authors(#26991) (#27017)
backport #26991 

Unfortunately, when a system setting hasn't been stored in the database,
it cannot be cached.
Meanwhile, this PR also uses context cache for push email avatar display
which should avoid to read user table via email address again and again.

According to my local test, this should reduce dashboard elapsed time
from 150ms -> 80ms .
1 year ago
..
avatar.go Fix context cache bug & enable context cache for dashabord commits' authors(#26991) (#27017) 1 year ago
badge.go Remove most path-based golangci exclusions (#24214) 2 years ago
email_address.go check blocklist for emails when adding them to account (#26812) (#26831) 1 year ago
email_address_test.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
error.go Refactor rename user and rename organization (#24052) 2 years ago
external_login_user.go Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
follow.go Implement FSFE REUSE for golang files (#21840) 2 years ago
follow_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
list.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
must_change_password.go Add command to bulk set must-change-password (#22823) 2 years ago
openid.go Use ErrInvalidArgument in packages (#22268) 2 years ago
openid_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
redirect.go Fix bug when change user name (#25637) (#25646) 2 years ago
redirect_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
search.go Add login name and source id for admin user searching API (#23376) 2 years ago
setting.go Add Debian package registry (#24426) 2 years ago
setting_keys.go Show outdated comments in files changed tab (#24936) (#25428) 2 years ago
setting_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
user.go Fix API leaking Usermail if not logged in (#25097) (#26350) 2 years ago
user_system.go Implement actions (#21937) 2 years ago
user_test.go Only validate changed columns when update user (#24867) 2 years ago
user_update.go Implement FSFE REUSE for golang files (#21840) 2 years ago