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
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
..
actions Fix log typo in task.go (#26337) (#26343) 2 years ago
activities Bypass MariaDB performance bug of the "IN" sub-query, fix incorrect IssueIndex (#26279) (#26368) 2 years ago
admin Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
asymkey Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
auth Ignore the trailing slashes when comparing oauth2 redirect_uri (#26597) (#26618) 2 years ago
avatars Fix context cache bug & enable context cache for dashabord commits' authors(#26991) (#27017) 1 year ago
db Fix NuGet search endpoints (#25613) (#26499) 2 years ago
dbfs Fix content holes in Actions task logs file (#25560) (#25566) 2 years ago
fixtures Fix context cache bug & enable context cache for dashabord commits' authors(#26991) (#27017) 1 year ago
git Fix pull request check list is limited (#26179) (#26245) 2 years ago
issues Fix wrong review requested number (#26784) (#26880) 1 year ago
migrations Prevent primary key update on migration (#26192) (#26199) 2 years ago
organization Remove unused code (#25734) (#25788) 2 years ago
packages Fix NuGet search endpoints (#25613) (#26499) 2 years ago
perm Rewrite logger system (#24726) 2 years ago
project Update xorm version (#26128) (#26150) 2 years ago
pull refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo Fix the topic validation rule and suport dots (#26286) (#26303) 2 years ago
secret Respect original content when creating secrets (#24745) 2 years ago
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2 years ago
system Fix context cache bug & enable context cache for dashabord commits' authors(#26991) (#27017) 1 year ago
unit Rewrite logger system (#24726) 2 years ago
unittest Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
user Fix context cache bug & enable context cache for dashabord commits' authors(#26991) (#27017) 1 year ago
webhook Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
error.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_generation.go Implement FSFE REUSE for golang files (#21840) 2 years ago
fixture_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Merge setting.InitXXX into one function with options (#24389) 2 years ago
migrate.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
migrate_test.go Check primary keys for all tables and drop ForeignReference (#21721) 2 years ago
org.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
org_team.go Remove org users who belong to no teams (#24247) 2 years ago
org_team_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
org_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo.go Replace `interface{}` with `any` (#25686) (#25687) 2 years ago
repo_collaboration.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
repo_collaboration_test.go Rename `repo.GetOwner` to `repo.LoadOwner` (#22967) 2 years ago
repo_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
repo_transfer.go Fix unclear `IsRepositoryExist` logic (#24374) 2 years ago
repo_transfer_test.go Rename almost all Ctx functions (#22071) 2 years ago