From d84565220bf5cd4d08c5d20a96e3c0ee4f30d470 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 31 Aug 2011 12:01:01 +0000 Subject: [PATCH] remove trailing white-spaces from app/controllers/repositories_controller.rb. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6891 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/repositories_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index eef856032..119ac826e 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -207,7 +207,7 @@ class RepositoriesController < ApplicationController User.current.pref[:diff_type] = @diff_type User.current.preference.save end - @cache_key = "repositories/diff/#{@repository.id}/" + + @cache_key = "repositories/diff/#{@repository.id}/" + Digest::MD5.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff_type}-#{current_language}") unless read_fragment(@cache_key) @diff = @repository.diff(@path, @rev, @rev_to) -- 2.39.5