Skip to content

Commit 2c2d998

Browse files
committed
Query cache is now a Store class instead of a Hash
1 parent 37be69c commit 2c2d998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/support/core_ext/query_cache.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module SqlIgnoredCache
2323
def cache_sql(sql, name, binds)
2424
result = super
2525

26-
@query_cache.delete_if do |cache_key, _v|
26+
@query_cache.instance_variable_get(:@map).delete_if do |cache_key, _v|
2727
# Query cache key generated by `sql` or `[sql, binds]`, so need to retrieve `sql` for both cases.
2828
cache_key_sql = Array(cache_key).first
2929
Regexp.union(IGNORED_SQL).match?(cache_key_sql)

0 commit comments

Comments
 (0)