Index: lib/acts_as_cached/cache_methods.rb =================================================================== --- lib/acts_as_cached/cache_methods.rb (revision 364) +++ lib/acts_as_cached/cache_methods.rb (working copy) @@ -267,15 +267,15 @@ # Ryan King def set_cache_with_associations - cache_options[:include].each do |assoc| + Array(cache_options[:include]).each do |assoc| send(assoc).reload - end if cache_options[:include] + end set_cache end # Lourens Naudé def expire_cache_with_associations(*associations_to_sweep) - ((cache_options[:include] || []) + associations_to_sweep).flatten.uniq.compact.each do |assoc| + (Array(cache_options[:include]) + associations_to_sweep).flatten.uniq.compact.each do |assoc| Array(send(assoc)).compact.each { |item| item.expire_cache if item.respond_to?(:expire_cache) } end expire_cache