docbrown/config
rhymes 1aee4202d8 Switch external redis_store to Rails supported redis_cache_store (#5282)
`redis_store` was initially introduced to switch sessions from the cookie store to Redis in https://github.com/thepracticaldev/dev.to/pull/4004. When we introduced a dual cache store in https://github.com/thepracticaldev/dev.to/pull/4991 we forgot to use the builtin Rails cache store - [ActiveSupport::Cache::RedisCacheStore](https://guides.rubyonrails.org/caching_with_rails.html#activesupport-cache-rediscachestore) - and instead kept using the external [ActiveSupport::Cache::RedisStore] which comes from the `redis-activesupport` gem included by `redis-rails`.

The gem `redis-activesupport` contains this disclaimer:

> Rails 5.2.0 includes a Redis cache store out of the box, so you don't really need this anymore if you're generating a new Rails application. We are no longer accepting new features for this gem, only pull requests for security and compatibility fixes will be accepted.

Other reasons to use the Rails builtin cache store, other than being supported and developed are the following:

- supports and uses `hiredis` as a client if installed:

22483b86a6/activesupport/lib/active_support/cache/redis_cache_store.rb (L12-L14)

- supports compressions for keys over 1kb (that can be configured)

- is evolved with Rails itself
2019-12-30 10:34:20 -05:00
..
environments Switch external redis_store to Rails supported redis_cache_store (#5282) 2019-12-30 10:34:20 -05:00
initializers Change RateLimitCheckerJob to RateLimitCheckerWorker and move to sidekiq (#5269) [deploy] 2019-12-27 16:09:25 -06:00
locales Update initializer and locales to doorkeeper 5.2.2 (#5004) 2019-12-04 11:44:46 -05:00
webpack Reduce Airbrake's error output (#628) 2018-07-27 09:04:52 -07:00
application.rb Fix rubocop Rails.root.path complaints (#5114) 2019-12-16 12:13:15 -05:00
boot.rb Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
cable.yml Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
database.yml Simplify development setup (#2143) 2019-03-25 12:53:39 -04:00
environment.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
puma.rb Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
routes.rb Remove PushNotificationSubscription (#5258) [deploy] 2019-12-27 13:45:38 -06:00
sample_application.yml Re-sort example Algolia keys (#3886) [ci skip] 2019-09-03 10:20:49 -04:00
secrets.yml Initial commit 2018-02-28 16:11:08 -05:00
sitemap.rb Replaced hard coded AWS region in carrierwave.rb and sitemaps.rb. Updated legacy migration files to include pre rails 5 version (this resolved new instances on Heroku) (#4874) [deploy] 2019-11-22 09:07:59 -05:00
spring.rb Rubocop Style cops enabled (#2056) 2019-03-15 18:33:54 -04:00
storage.yml Upgrade Rails to 5.2.3 (#1408) 2019-04-03 13:08:59 -04:00
webpacker.yml Make adjustments and fixes to DEV Conncect (#427) 2018-06-13 14:46:30 -04:00