ActiveRecord already implements this at the model level and also makes use of the ActiveRecord schema cache. `Database.table_available?` did not use this query cache and ended up sending *all* of those queries to Postgres every single time.
Settings::Base
* Introduce Settings::Base * Temporarily re-add gem * Update Settings::Base to use RequestStore * Add after_commit hook * Restructure code * Finish specs, rename field -> setting * Update comment * Undo unrelated change * Remove redundant get_default * Fix Doorkeeper issue * Update docs/backend/configuration.md Co-authored-by: Josh Puetz <josh@dev.to> * Clarify comment and documentation * Update vendored gems * Fix nil-handling bug in Settings::Base * Remove accidentaly changes from Gemfile.lock * Update vendored gems Co-authored-by: Josh Puetz <josh@dev.to>