0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-12 11:02:26 +01:00
gitea/routers/web/repo
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
..
actions Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
setting Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
activity.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
attachment.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
blame.go GitHub like repo home page (#32213) 2024-12-06 14:29:04 +00:00
branch.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
cherry_pick.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
code_frequency.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
commit.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
compare.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
contributors.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
download.go Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987) 2024-12-30 03:30:01 +00:00
editor_test.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
editor.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
find.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
fork.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
githttp_test.go
githttp.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
helper.go
issue_comment.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
issue_content_history.go
issue_dependency.go
issue_label_test.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
issue_label.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
issue_list.go Use CloseIssue and ReopenIssue instead of ChangeStatus (#32467) 2024-12-25 07:38:30 +00:00
issue_lock.go
issue_new.go
issue_page_meta.go Fix compare page bug view as anonymous (#32754) 2024-12-08 14:38:21 +08:00
issue_pin.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_poster.go
issue_stopwatch.go Issue time estimate, meaningful time tracking (#23113) 2024-12-05 13:07:53 +00:00
issue_suggestions.go
issue_test.go
issue_timetrack.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_view.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
issue_watch.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
issue.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
main_test.go
middlewares.go
migrate.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
milestone.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
packages.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
patch.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
projects_test.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
projects.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
pull_review_test.go
pull_review.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
pull.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
recent_commits.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
release_test.go
release.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
render.go Refactor markup render system (#32612) 2024-11-24 16:18:57 +08:00
repo.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
search_test.go
search.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00
topic.go
treelist.go
view_file.go Support "merge upstream branch" (Sync fork) (#32741) 2024-12-06 21:10:35 +00:00
view_home.go Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
view_readme.go GitHub like repo home page (#32213) 2024-12-06 14:29:04 +00:00
view_test.go
view.go Refactor template & test related code (#32938) 2024-12-22 15:33:19 +00:00
wiki_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
wiki.go Refactor pagination (#33037) 2024-12-30 01:57:38 +00:00