[#4604] Force clearing any lockfiles when submitted from the web

This commit is contained in:
Eric Davis committed 2010-10-13 12:41:50 -07:00
1 parent e4f1a623f1
commit f9bd3c0e53
2 files changed
+17 -6

No files matched your search

+2 -2
View File
@@ -23,10 +23,10 @@ class RateCachesController < ApplicationController
def update
if params[:cache].present?
if params[:cache].match(/missing/)
Rate.update_all_time_entries_with_missing_cost
Rate.update_all_time_entries_with_missing_cost(:force => true)
flash[:notice] = l(:text_caches_loaded_successfully)
elsif params[:cache].match(/reload/)
Rate.update_all_time_entries_to_refresh_cache
Rate.update_all_time_entries_to_refresh_cache(:force => true)
flash[:notice] = l(:text_caches_loaded_successfully)
end
end