1
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-06 17:17:44 +03:00
gitea/routers
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
..
api Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2024-12-30 03:30:01 +00:00
common Refactor tmpl and blob_excerpt (#32967) 2024-12-25 00:51:13 +08:00
install Refactor request context (#32956) 2024-12-24 11:43:57 +08:00
private Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
utils Refactor external URL detection (#29973) 2024-03-22 04:32:40 +08:00
web Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2024-12-30 03:30:01 +00:00
init.go Add sub issue list support (#32940) 2024-12-24 01:54:19 +00:00