Browse Source

仓库语言缓存随着项目数变化

pull/342/head
xxq250 3 years ago
parent
commit
1bfaa44af5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/controllers/organizations/organizations_controller.rb

+ 1
- 1
app/controllers/organizations/organizations_controller.rb View File

@@ -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



Loading…
Cancel
Save