0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-03-04 19:16:45 +01:00

add more routes to the "expensive" list (#36290)

backport: https://github.com/go-gitea/gitea/pull/35547
closes https://github.com/go-gitea/gitea/issues/36229

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Co-authored-by: Steven Noonan <steven@uplinklabs.net>
This commit is contained in:
TheFox0x7 2026-01-03 15:59:48 +01:00 committed by GitHub
parent 76b6e94b5b
commit e9c14723b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,9 +44,11 @@ func isRoutePathExpensive(routePattern string) bool {
"/{username}/{reponame}/blame/",
"/{username}/{reponame}/commit/",
"/{username}/{reponame}/commits/",
"/{username}/{reponame}/compare/",
"/{username}/{reponame}/graph",
"/{username}/{reponame}/media/",
"/{username}/{reponame}/raw/",
"/{username}/{reponame}/rss/branch/",
"/{username}/{reponame}/src/",
// issue & PR related (no trailing slash)