0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-02-20 12:55:47 -05:00
forgejo/routers/web
Lunny Xiao bc64b6f004
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)
```

(cherry picked from commit f4ccbd38dca77b1515a08ddf927f4f20cf644d30)
2025-01-05 12:13:48 +00:00
..
admin feat: add synchronization for SSH keys with OpenID Connect 2024-12-09 18:59:11 +03:00
auth fix: return empty slice if AttributeSSHPublicKey is missing in RawData 2024-12-27 11:17:27 +03:00
devtest
events
explore feat: filepath filter for code search (#6143) 2024-12-22 12:24:29 +00:00
feed fix: don't show truncated comments in RSS/Atom feeds 2024-10-22 15:15:09 +02:00
healthcheck
misc fix: Preview picture not visible on Markdown file (#5781) 2024-11-23 15:00:18 +00:00
org Rewrite OpenGraph Header 2025-01-01 20:43:20 +01:00
repo Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2025-01-05 12:13:48 +00:00
shared
user Rewrite OpenGraph Header 2025-01-01 20:43:20 +01:00
base.go Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-11-05 09:33:15 +01:00
githttp.go
goget.go
home.go Rewrite OpenGraph Header 2025-01-01 20:43:20 +01:00
metrics.go
nodeinfo.go
swagger_json.go
web.go Update 2024-12-18 22:33:22 +01:00
webfinger.go