quick and dirty cache for popular tags result

This commit is contained in:
Kyle Drake 2016-04-18 22:25:18 -07:00
parent be6196d67c
commit 2f09415d88
4 changed files with 18 additions and 1 deletions

View file

@ -62,6 +62,9 @@ Sidekiq.configure_client do |config|
config.redis = sidekiq_redis_config
end
$redis = Redis.new
$redis_cache = Redis::Namespace.new :cache, redis: $redis
# :nocov:
if ENV['RACK_ENV'] == 'development'
# Run async jobs immediately in development.