Skip to content

Commit 3163bb7

Browse files
authored
Merge pull request rails#51085 from eugeneius/prune_thread_cache
2 parents 6260b6b + bc31f5e commit 3163bb7

File tree

1 file changed

+1
-0
lines changed
  • activerecord/lib/active_record/connection_adapters/abstract

1 file changed

+1
-0
lines changed

activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def query_cache_enabled
135135

136136
private
137137
def prune_thread_cache
138+
super
138139
dead_threads = @thread_query_caches.keys.reject(&:alive?)
139140
dead_threads.each do |dead_thread|
140141
@thread_query_caches.delete(dead_thread)

0 commit comments

Comments
 (0)