Skip to content

Commit

Permalink
Finish writing a comment since I had gotten distracted
Browse files Browse the repository at this point in the history
  • Loading branch information
zspencer committed Aug 3, 2020
1 parent 948ceb1 commit 4835ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convene-web/app/models/branded_domain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def matches?(request)
workspace_for_request(request).present?
end

# We cache the branded
# We cache the branded workspaces to reduce the database-hits-per-request where we can.
private def branded_workspaces
Rails.cache.fetch("BrandedSubdomain#branded_workspaces", expires_in: 1.minute) do
workspace_repository.where.not(branded_domain: nil).each_with_object({}) do |workspace, branded_domains|
Expand Down

0 comments on commit 4835ff1

Please sign in to comment.