From: Toshi MARUYAMA Date: Wed, 31 Aug 2011 12:01:01 +0000 (+0000) Subject: remove trailing white-spaces from app/controllers/repositories_controller.rb. X-Git-Tag: 1.3.0~1071 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d84565220bf5cd4d08c5d20a96e3c0ee4f30d470;p=redmine.git 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 --- 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)