Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added additional rescue

  • Loading branch information...
commit a8ca3165445251d9d2a2d5eb6354b479657732e7 1 parent 605f6e6
Pascal Rettig authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 app/models/data_cache.rb
7 app/models/data_cache.rb
View
@@ -213,6 +213,13 @@ def self.get_content(content_type,content_target,display_location)
ret_val = CACHE.get_multi(container_string,content_type_string,content_target_string,display_location_string)
rescue ArgumentError => e
ret_val = { }
+ rescue
+ begin
+ CACHE.reset
+ ret_val = CACHE.get_multi(container_string,content_type_string,content_target_string,display_location_string)
+ rescue
+ ret_val = {}
+ end
end
val = ret_val[display_location_string]
Please sign in to comment.
Something went wrong with that request. Please try again.