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-12-30 01:57:38 +00:00
2024-12-24 13:47:45 +00:00
2024-12-22 15:33:19 +00:00
2024-12-24 13:47:45 +00:00
2024-12-06 14:29:04 +00:00
2024-12-30 01:57:38 +00:00
2024-12-24 13:47:45 +00:00
2024-12-22 15:33:19 +00:00
2024-12-30 01:57:38 +00:00
2024-12-26 11:56:03 +08:00
2024-12-22 15:33:19 +00:00
2024-12-30 03:30:01 +00:00
2024-12-24 13:47:45 +00:00
2024-12-22 15:33:19 +00:00
2024-12-22 15:33:19 +00:00
2024-12-22 15:33:19 +00:00
2023-11-02 22:14:33 +08:00
2024-12-24 13:47:45 +00:00
2024-09-12 03:53:40 +00:00
2024-12-25 07:38:30 +00:00
2024-11-04 11:30:00 +00:00
2024-06-19 06:32:45 +08:00
2024-12-29 01:05:56 +00:00
2024-12-22 15:33:19 +00:00
2024-12-25 07:38:30 +00:00
2024-02-27 08:12:22 +01:00
2024-11-11 04:28:54 +00:00
2024-12-08 14:38:21 +08:00
2024-12-24 13:47:45 +00:00
2024-11-11 04:28:54 +00:00
2024-12-05 13:07:53 +00:00
2024-10-30 20:06:36 +00:00
2022-11-27 18:20:29 +00:00
2024-12-24 13:47:45 +00:00
2024-12-24 13:47:45 +00:00
2024-12-22 15:33:19 +00:00
2024-12-24 13:47:45 +00:00
2023-09-28 01:38:53 +00:00
2024-02-27 08:12:22 +01:00
2024-12-22 15:33:19 +00:00
2024-12-30 01:57:38 +00:00
2024-12-30 01:57:38 +00:00
2024-12-22 15:33:19 +00:00
2024-12-24 13:47:45 +00:00
2024-12-30 01:57:38 +00:00
2024-03-19 04:19:48 +00:00
2024-12-22 15:33:19 +00:00
2024-12-24 13:47:45 +00:00
2024-12-22 15:33:19 +00:00
2024-02-27 08:12:22 +01:00
2024-12-30 01:57:38 +00:00
2024-11-24 16:18:57 +08:00
2024-12-24 13:47:45 +00:00
2024-05-03 09:13:48 +00:00
2024-12-30 01:57:38 +00:00
2024-02-27 08:12:22 +01:00
2024-02-27 08:12:22 +01:00
2024-12-06 21:10:35 +00:00
2024-12-24 13:47:45 +00:00
2024-12-06 14:29:04 +00:00
2022-11-27 18:20:29 +00:00
2024-12-22 15:33:19 +00:00
2024-12-15 10:41:29 +00:00
2024-12-30 01:57:38 +00:00