Skip to content

Commit

Permalink
Avoid reloading the app directory
Browse files Browse the repository at this point in the history
It's not currently safe to reload connection classes in Rails as
the old class is cached in the pool config.

See: rails/rails#54343

This can lead to issues like:
#238
  • Loading branch information
djmb committed Jan 24, 2025
1 parent 45cc798 commit d449be7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/solid_cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
loader = Zeitwerk::Loader.for_gem
loader.ignore("#{__dir__}/active_support")
loader.ignore("#{__dir__}/generators")
loader.ignore("#{__dir__}/../app")
loader.setup

module SolidCache
Expand Down

0 comments on commit d449be7

Please sign in to comment.