We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37be69c commit 2c2d998Copy full SHA for 2c2d998
test/support/core_ext/query_cache.rb
@@ -23,7 +23,7 @@ module SqlIgnoredCache
23
def cache_sql(sql, name, binds)
24
result = super
25
26
- @query_cache.delete_if do |cache_key, _v|
+ @query_cache.instance_variable_get(:@map).delete_if do |cache_key, _v|
27
# Query cache key generated by `sql` or `[sql, binds]`, so need to retrieve `sql` for both cases.
28
cache_key_sql = Array(cache_key).first
29
Regexp.union(IGNORED_SQL).match?(cache_key_sql)
0 commit comments