0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-12 11:02:26 +01:00
gitea/routers/web
Lunny Xiao f4ccbd38dc
Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987)
The latest commit cache is currently used only for listing tree files.
However, a cold start may take longer than directly invoking the Git
command. This PR addresses the issue of slow response times when
accessing raw files, improving performance in such scenarios.

```log
gitea.log:105521:2024/12/23 08:22:18 ...eb/routing/logger.go:68:func1() [W] router: slow      GET /xxxx/xxxxxx/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxx/.editorconfig for 172.18.0.5:53252, elapsed 3526.8ms @ repo/download.go:117(repo.SingleDownload)
```
2024-12-30 03:30:01 +00:00
..
admin Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
auth Support for email addresses containing uppercase characters when activating user account (#32998) 2024-12-27 19:16:23 +08:00
devtest De-emphasize signed commits (#31160) 2024-12-28 04:18:30 +08:00
events
explore Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
feed Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
healthcheck
misc Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
org Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
repo Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2024-12-30 03:30:01 +00:00
shared Add show more organizations icon in user's profile (#32986) 2024-12-27 02:49:50 +08:00
user Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
base.go
githttp.go
goget.go
home.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
metrics.go
nodeinfo.go
passkey.go
swagger_json.go
web.go Refactor tmpl and blob_excerpt (#32967) 2024-12-25 00:51:13 +08:00
webfinger.go