Skip to content

Commit 4b135c7

Browse files
author
root
committed
Override check_cache method totally
1 parent 4db6ef6 commit 4b135c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: lib/redmine_git_hosting/patches/setting_patch.rb

+5-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ class << self
2323
module ClassMethods
2424

2525
def check_cache_with_git_hosting
26-
check_cache_without_git_hosting
27-
RedmineGitHosting::Config.check_cache
26+
settings_updated_on = Setting.maximum(:updated_on)
27+
if settings_updated_on && @cached_cleared_on <= settings_updated_on
28+
clear_cache
29+
RedmineGitHosting::Config.check_cache
30+
end
2831
end
2932

3033
end

0 commit comments

Comments
 (0)