mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
仓库语言缓存随着项目数变化
This commit is contained in:
@@ -88,7 +88,7 @@ class Organizations::OrganizationsController < Organizations::BaseController
|
||||
projects = @organization.projects
|
||||
projects_count = @organization.projects.count
|
||||
|
||||
languages_hash = Rails.cache.fetch("query/organizations/languages/#{@organization.id}", :expires_in => 1.days) do
|
||||
languages_hash = Rails.cache.fetch("query/organizations/languages/#{@organization.id}/#{projects_count}", :expires_in => 1.days) do
|
||||
total_languages(projects)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user