lib/sequel/plugins/static_cache_cache.rb in sequel-5.71.0 vs lib/sequel/plugins/static_cache_cache.rb in sequel-5.72.0

- old
+ new

@@ -24,10 +24,14 @@ end module ClassMethods # Dump the in-memory cached rows to the cache file. def dump_static_cache_cache - File.open(@static_cache_cache_file, 'wb'){|f| f.write(Marshal.dump(@static_cache_cache))} + static_cache_cache = {} + @static_cache_cache.sort.each do |k, v| + static_cache_cache[k] = v + end + File.open(@static_cache_cache_file, 'wb'){|f| f.write(Marshal.dump(static_cache_cache))} nil end Plugins.inherited_instance_variables(self, :@static_cache_cache_file=>nil, :@static_cache_cache=>nil)