Skip to content

Commit

Permalink
Updated Redis cache details
Browse files Browse the repository at this point in the history
  • Loading branch information
wpoynter committed Aug 22, 2016
1 parent 383fda9 commit 72ac14b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config.ru
Expand Up @@ -7,7 +7,7 @@ require 'redis-rack-cache'

use Rack::Deflater
use Rack::Cache,
metastore: ((ENV["REDIS_URL"] + '/1') || 'redis://127.0.0.1:6379/0') + '/metastore',
entitystore: ((ENV["REDIS_URL"] + '/1') || 'redis://127.0.0.1:6379/0') + '/entitystore'
metastore: (ENV["REDIS_URL"] || 'redis://127.0.0.1:6379') + '/1/metastore',
entitystore: (ENV["REDIS_URL"] || 'redis://127.0.0.1:6379') + '/1/entitystore'

run Rails.application
5 changes: 5 additions & 0 deletions config/environments/development.rb
Expand Up @@ -40,4 +40,9 @@
# config.action_view.raise_on_missing_translations = true

config.public_file_server.enabled = false

config.action_dispatch.rack_cache = {
metastore: (ENV["REDIS_URL"] || 'redis://127.0.0.1:6379') + '/1/metastore',
entitystore: (ENV["REDIS_URL"] || 'redis://127.0.0.1:6379') + '/1/entitystore'
}
end
5 changes: 5 additions & 0 deletions config/environments/production.rb
Expand Up @@ -4,6 +4,11 @@
# Code is not reloaded between requests.
config.cache_classes = true

config.action_dispatch.rack_cache = {
metastore: (ENV["REDIS_URL"] || 'redis://127.0.0.1:6379') + '/1/metastore',
entitystore: (ENV["REDIS_URL"] || 'redis://127.0.0.1:6379') + '/1/entitystore'
}

# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both threaded web servers
# and those relying on copy on write to perform better.
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/version.rb
@@ -1,6 +1,6 @@
module Archivist
class Application
VERSION = "5.0.0"
BETA = true
VERSION = "5.2.5"
BETA = false
end
end

0 comments on commit 72ac14b

Please sign in to comment.