1
1
Fork 1
mirror of https://github.com/go-gitea/gitea.git synced 2024-06-03 10:46:08 +02:00
gitea/routers/web
Lunny Xiao e308d25f1b
Cache repository default branch commit status to reduce query on commit status table (#29444)
After repository commit status has been introduced on dashaboard, the
most top SQL comes from `GetLatestCommitStatusForPairs`.

This PR adds a cache for the repository's default branch's latest
combined commit status. When a new commit status updated, the cache will
be marked as invalid.

<img width="998" alt="image"
src="https://github.com/go-gitea/gitea/assets/81045/76759de7-3a83-4d54-8571-278f5422aed3">
2024-03-06 12:17:19 +00:00
..
admin Skip email domain check when admins edit user emails (#29609) 2024-03-05 16:51:56 +00:00
auth Make "/user/login" page redirect if the current user has signed in (#29583) 2024-03-05 02:12:03 +00:00
devtest Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
events Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
explore Filter Repositories by type (#29231) 2024-03-03 10:18:34 +00:00
feed Rename Str2html to SanitizeHTML and clarify its behavior (#29516) 2024-03-01 10:16:19 +00:00
healthcheck Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
misc Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
org Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
repo Cache repository default branch commit status to reduce query on commit status table (#29444) 2024-03-06 12:17:19 +00:00
shared Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
user Move some asymkey functions to service layer (#28894) 2024-03-04 08:57:39 +00:00
base.go Fix panic in storageHandler (#27446) 2023-10-06 13:23:14 +00:00
githttp.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
goget.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
home.go migrate some more "OptionalBool" to "Option[bool]" (#29479) 2024-02-29 18:52:49 +00:00
metrics.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
passkey.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
swagger_json.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
web.go Add user blocking (#29028) 2024-03-04 08:16:03 +00:00
webfinger.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00