Use git commit hash as part of the cache key

avoids issues with model caching being incompatible across versions
Este commit está contenido en:
nightpool 2019-06-15 10:47:09 -04:00 cometido por chr
padre c4118ba71b
commit 84bf5ca175
Se han modificado 1 ficheros con 1 adiciones y 1 borrados

Ver fichero

@ -22,7 +22,7 @@ setup_redis_env_url
setup_redis_env_url(:cache, false)
namespace = ENV.fetch('REDIS_NAMESPACE') { nil }
cache_namespace = namespace ? namespace + '_cache' : 'cache'
cache_namespace = [namespace, 'cache', `git rev-parse --short HEAD`.strip].compact.join('_')
REDIS_CACHE_PARAMS = {
expires_in: 10.minutes,