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.
forgejo/models/user
Lunny Xiao ebff0513db
Fix context cache bug & enable context cache for dashabord commits' authors (#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 .
10 months ago
..
avatar.go Fix context cache bug & enable context cache for dashabord commits' authors (#26991) 10 months ago
badge.go Remove most path-based golangci exclusions (#24214) 1 year ago
email_address.go Check blocklist for emails when adding them to account (#26812) 11 months 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) 1 year ago
external_login_user.go Replace `interface{}` with `any` (#25686) 1 year 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 move repository deletion to service layer (#26948) 10 months ago
must_change_password.go Add command to bulk set must-change-password (#22823) 1 year 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) 1 year 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) 1 year ago
setting.go Add Debian package registry (#24426) 1 year ago
setting_keys.go Show outdated comments in files changed tab (#24936) 1 year 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) 12 months ago
user_system.go Implement actions (#21937) 1 year ago
user_test.go Only validate changed columns when update user (#24867) 1 year ago
user_update.go Implement FSFE REUSE for golang files (#21840) 2 years ago