From 87b58e6bc2554362f697d7e35ce1a286b60552d5 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Mon, 18 Sep 2017 12:31:33 -0400 Subject: [PATCH] Apply ephemeral cache for some memoize tasks recently merged --- installer/image_build/files/settings.py | 3 +++ installer/openshift/templates/configmap.yml.j2 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/installer/image_build/files/settings.py b/installer/image_build/files/settings.py index 45454fcba2..071811447a 100644 --- a/installer/image_build/files/settings.py +++ b/installer/image_build/files/settings.py @@ -108,4 +108,7 @@ CACHES = { 'LOCATION': '{}:{}'.format(os.getenv("MEMCACHED_HOST", None), os.getenv("MEMCACHED_PORT", "11211")) }, + 'ephemeral': { + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', + }, } diff --git a/installer/openshift/templates/configmap.yml.j2 b/installer/openshift/templates/configmap.yml.j2 index 40d006401e..1cf1cc58a2 100644 --- a/installer/openshift/templates/configmap.yml.j2 +++ b/installer/openshift/templates/configmap.yml.j2 @@ -89,4 +89,7 @@ data: 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '{}:{}'.format("localhost", "11211") }, + 'ephemeral': { + 'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', + }, }