Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Commit 212b03e

Browse files
iamsobanjavedMuhammad Soban Javed
andauthored
fix: replace MemcachedCache with PyMemcacheCache (#1210)
Co-authored-by: Muhammad Soban Javed <iamsobanjaved@gmai.com>
1 parent d9ff540 commit 212b03e

4 files changed

Lines changed: 20 additions & 4 deletions

File tree

configuration_files/analytics_api.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@ BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL: http://127.0.0.1:8000/oauth2
77
BACKEND_SERVICE_EDX_OAUTH2_SECRET: analytics_api-backend-service-secret
88
CACHES:
99
default:
10-
BACKEND: django.core.cache.backends.memcached.MemcachedCache
10+
BACKEND: django.core.cache.backends.memcached.PyMemcacheCache
1111
KEY_PREFIX: analytics_api
1212
LOCATION:
1313
- memcache
14+
OPTIONS:
15+
no_delay: true
16+
ignore_exc: true
17+
use_pooling: true
1418
CSRF_COOKIE_SECURE: false
1519
DATABASES:
1620
default:

configuration_files/discovery.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL: http://localhost:18000/oauth2
99
BACKEND_SERVICE_EDX_OAUTH2_SECRET: discovery-backend-service-secret
1010
CACHES:
1111
default:
12-
BACKEND: django.core.cache.backends.memcached.MemcachedCache
12+
BACKEND: django.core.cache.backends.memcached.PyMemcacheCache
1313
KEY_PREFIX: discovery
1414
LOCATION:
1515
- edx.devstack.memcached:11211
16+
OPTIONS:
17+
no_delay: true
18+
ignore_exc: true
19+
use_pooling: true
1620
CELERY_BROKER_URL: redis://:password@edx.devstack.redis:6379/
1721
CORS_ORIGIN_WHITELIST: []
1822
CSRF_COOKIE_SECURE: false

configuration_files/insights.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ APPLICATION_NAME: Insights
44
BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL: http://edx.devstack.lms:18000/oauth2
55
CACHES:
66
default:
7-
BACKEND: django.core.cache.backends.memcached.MemcachedCache
7+
BACKEND: django.core.cache.backends.memcached.PyMemcacheCache
88
KEY_PREFIX: default_env-default_deployment-insights
99
LOCATION:
1010
- edx.devstack.memcached:11211
11+
OPTIONS:
12+
no_delay: true
13+
ignore_exc: true
14+
use_pooling: true
1115
CDN_DOMAIN: null
1216
CMS_COURSE_SHORTCUT_BASE_URL: http://edx.devstack.lms:18000/course
1317
COURSE_API_URL: http://edx.devstack.lms:18000/api/courses/v1/

configuration_files/registrar.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL: http://localhost:18000/oauth2
44
BACKEND_SERVICE_EDX_OAUTH2_SECRET: registrar-backend-service-secret
55
CACHES:
66
default:
7-
BACKEND: django.core.cache.backends.memcached.MemcachedCache
7+
BACKEND: django.core.cache.backends.memcached.PyMemcacheCache
88
KEY_PREFIX: registrar
99
LOCATION:
1010
- edx.devstack.memcached:11211
11+
OPTIONS:
12+
no_delay: true
13+
ignore_exc: true
14+
use_pooling: true
1115
CELERY_ALWAYS_EAGER: false
1216
CELERY_BROKER_HOSTNAME: ''
1317
CELERY_BROKER_PASSWORD: ''

0 commit comments

Comments
 (0)