--- a/{{cookiecutter.project_slug}}/etc/development.ini Tue Jun 27 13:22:49 2017 +0200
+++ b/{{cookiecutter.project_slug}}/etc/development.ini Tue Jun 27 15:09:59 2017 +0200
@@ -82,6 +82,9 @@
# Beaker session
beaker.session.type = {{ cookiecutter.beaker_backend }}
beaker.session.url = {{ cookiecutter.beaker_server }}
+{%- if cookiecutter.beaker_backend == 'redis' %}
+beaker.session.db = 1
+{%- endif %}
beaker.session.data_dir = $((INSTALL))/var/cache
beaker.session.lock_dir = $((INSTALL))/var/locks
@@ -90,11 +93,18 @@
beaker.cache.url = {{ cookiecutter.beaker_server }}
beaker.cache.data_dir = $((INSTALL))/var/cache
beaker.cache.lock_dir = $((INSTALL))/var/locks
-beaker.cache.regions = short, default, long, persistent
+beaker.cache.regions = short, default, long, persistent, views
beaker.cache.short.expire = 60
beaker.cache.default.expire = 300
beaker.cache.long.expire = 3600
beaker.cache.persistent.expire = 604800
+{%- if cookiecutter.beaker_backend == 'redis' %}
+beaker.cache.short.db = 2
+beaker.cache.default.db = 3
+beaker.cache.long.db = 4
+beaker.cache.persistent.db = 5
+beaker.cache.views.db = 6
+{%- endif %}
# PyAMS application factory
pyams.application_factory = pyams_content.root.SiteRoot
--- a/{{cookiecutter.project_slug}}/etc/production.ini Tue Jun 27 13:22:49 2017 +0200
+++ b/{{cookiecutter.project_slug}}/etc/production.ini Tue Jun 27 15:09:59 2017 +0200
@@ -76,6 +76,9 @@
# Beaker session
beaker.session.type = {{ cookiecutter.beaker_backend }}
beaker.session.url = {{ cookiecutter.beaker_server }}
+{%- if cookiecutter.beaker_backend == 'redis' %}
+beaker.session.db = 1
+{%- endif %}
beaker.session.data_dir = $((INSTALL))/var/cache
beaker.session.lock_dir = $((INSTALL))/var/locks
@@ -84,11 +87,19 @@
beaker.cache.url = {{ cookiecutter.beaker_server }}
beaker.cache.data_dir = $((INSTALL))/var/cache
beaker.cache.lock_dir = $((INSTALL))/var/locks
-beaker.cache.regions = short, default, long, persistent
+beaker.cache.regions = short, default, long, persistent, views
beaker.cache.short.expire = 60
beaker.cache.default.expire = 300
beaker.cache.long.expire = 3600
beaker.cache.persistent.expire = 604800
+beaker.cache.views.expire = 300
+{%- if cookiecutter.beaker_backend == 'redis' %}
+beaker.cache.short.db = 2
+beaker.cache.default.db = 3
+beaker.cache.long.db = 4
+beaker.cache.persistent.db = 5
+beaker.cache.views.db = 6
+{%- endif %}
# PyAMS application factory
pyams.application_factory = pyams_content.root.SiteRoot