index: /Users/blythie/radrails/trunk/trunk/vendor/plugins/action_cache/lib/action_cache.rb =================================================================== --- /Users/blythie/radrails/trunk/trunk/vendor/plugins/action_cache/lib/action_cache.rb (revision 9304) +++ /Users/blythie/radrails/trunk/trunk/vendor/plugins/action_cache/lib/action_cache.rb (working copy) @@ -197,8 +197,12 @@ return YAML.load(cache) end return nil + #rescue trouble (load error) and remove the invalid entry + rescue + remove_cache_item(controller) + return nil end - + def save_to_cache(controller) cache = CacheEntry.new(controller.response.headers, controller.response.time_to_live) controller.write_fragment(body_name(controller), controller.response.body)