1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-19 22:24:27 +00:00
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
..
2024-06-19 06:32:45 +08:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00
2024-12-24 11:43:57 +08:00
2024-12-24 11:43:57 +08:00
2024-12-24 13:47:45 +00:00
2024-06-19 06:32:45 +08:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00
2024-10-01 15:25:08 -04:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00
2024-06-19 06:32:45 +08:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00
2024-12-24 11:43:57 +08:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00