lib/osm/api.rb in osm-0.0.18 vs lib/osm/api.rb in osm-0.0.19

- old
+ new

@@ -495,10 +495,10 @@ to_return = [] data.each do |item| to_return.push Osm::RegisterData.from_api(item) end self.user_can_access :register, section_id, api_data - cache_write("register-#{section_id}-#{term_id}", data, :expires_in => @@default_cache_ttl/2) + cache_write("register-#{section_id}-#{term_id}", to_return, :expires_in => @@default_cache_ttl/2) return to_return end # Create an evening in OSM # @param [Fixnum] section_id the id of the section to add the term to