Mercurial > zeropaste
comparison config/application.rb @ 368:7b58d38c9b6a
Completely remove memcache.
author | edogawaconan <me@myconan.net> |
---|---|
date | Mon, 23 Mar 2015 19:12:14 +0900 |
parents | 56382cb104dd |
children | 851432f21603 |
comparison
equal
deleted
inserted
replaced
367:b8c00142fbfc | 368:7b58d38c9b6a |
---|---|
66 # Version of your assets, change this if you want to expire all your assets | 66 # Version of your assets, change this if you want to expire all your assets |
67 config.assets.version = "1.0" | 67 config.assets.version = "1.0" |
68 | 68 |
69 # No need to initialize application when precompiling assets | 69 # No need to initialize application when precompiling assets |
70 config.assets.initialize_on_precompile = false | 70 config.assets.initialize_on_precompile = false |
71 | |
72 if ENV["ZP_MEMCACHE"] | |
73 config.cache_store = :dalli_store, ENV["ZP_MEMCACHE"].split(","), { :namespace => "zeropaste" } | |
74 else | |
75 config.cache_store = :null_store | |
76 end | |
77 end | 71 end |
78 end | 72 end |