mirror of
https://github.com/neocities/neocities.git
synced 2025-05-16 01:17:19 +02:00
quick and dirty cache for popular tags result
This commit is contained in:
parent
be6196d67c
commit
2f09415d88
4 changed files with 18 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue