[#4604] Add the last cache timestamps to the caching admin panel

This commit is contained in:
Eric Davis
2010-10-13 11:50:24 -07:00
parent 073dfe1177
commit 7824eadc94
4 changed files with 57 additions and 3 deletions
+12
View File
@@ -6,5 +6,17 @@ class RateCachesController < ApplicationController
before_filter :require_admin
def index
@last_caching_run = if Setting.plugin_redmine_rate['last_caching_run'].present? && Setting.plugin_redmine_rate['last_caching_run'].to_date
format_time(Setting.plugin_redmine_rate['last_caching_run'])
else
l(:text_no_cache_run)
end
@last_cache_clearing_run = if Setting.plugin_redmine_rate['last_cache_clearing_run'].present? && Setting.plugin_redmine_rate['last_cache_clearing_run'].to_date
format_time(Setting.plugin_redmine_rate['last_cache_clearing_run'])
else
l(:text_no_cache_run)
end
end
end