We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37be69c commit f2f1c80Copy full SHA for f2f1c80
test/support/core_ext/query_cache.rb
@@ -22,8 +22,8 @@ module SqlIgnoredCache
22
# compromising cache outside tests.
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