forgejo/routers/web
Lunny Xiao 95e682f104
Cache repository default branch commit status to reduce query on commit status table ()
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">

(cherry picked from commit e308d25f1b2fe24b4735432b05e5e221879a2705)
2024-03-11 23:36:58 +07:00
..
admin Skip email domain check when admins edit user emails () 2024-03-11 23:36:58 +07:00
auth Make "/user/login" page redirect if the current user has signed in () 2024-03-11 23:36:58 +07:00
devtest Move context from modules to services () 2024-03-06 12:10:43 +08:00
events Move context from modules to services () 2024-03-06 12:10:43 +08:00
explore Filter Repositories by type () 2024-03-06 12:10:46 +08:00
feed Rename Str2html to SanitizeHTML and clarify its behavior () 2024-03-06 12:10:45 +08:00
healthcheck [BRANDING] cosmetic s/Gitea/Forgejo/ in logs, messages, etc. 2024-02-05 16:02:14 +01:00
misc Move context from modules to services () 2024-03-06 12:10:43 +08:00
org Filter Repositories by type () 2024-03-06 12:10:46 +08:00
repo Cache repository default branch commit status to reduce query on commit status table () 2024-03-11 23:36:58 +07:00
shared remove util.OptionalBool and related functions () 2024-03-06 12:10:46 +08:00
user Allow options to disable user ssh keys configuration from the interface on app.ini () 2024-03-11 23:36:57 +07:00
base.go Fix panic in storageHandler () 2023-10-06 13:23:14 +00:00
githttp.go Move context from modules to services () 2024-03-06 12:10:43 +08:00
goget.go Move context from modules to services () 2024-03-06 12:10:43 +08:00
home.go migrate some more "OptionalBool" to "Option[bool]" () 2024-03-06 12:10:44 +08:00
metrics.go Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
nodeinfo.go Move context from modules to services () 2024-03-06 12:10:43 +08:00
swagger_json.go Move context from modules to services () 2024-03-06 12:10:43 +08:00
web.go Move context from modules to services () 2024-03-06 12:10:43 +08:00
webfinger.go Move context from modules to services () 2024-03-06 12:10:43 +08:00