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

Commit

Permalink
fix: replace MemcachedCache with PyMemcacheCache (#1210)
Browse files Browse the repository at this point in the history
Co-authored-by: Muhammad Soban Javed <[email protected]>
  • Loading branch information
iamsobanjaved and Muhammad Soban Javed authored Oct 16, 2023
1 parent d9ff540 commit 212b03e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
6 changes: 5 additions & 1 deletion configuration_files/analytics_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL: http://127.0.0.1:8000/oauth2
BACKEND_SERVICE_EDX_OAUTH2_SECRET: analytics_api-backend-service-secret
CACHES:
default:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
BACKEND: django.core.cache.backends.memcached.PyMemcacheCache
KEY_PREFIX: analytics_api
LOCATION:
- memcache
OPTIONS:
no_delay: true
ignore_exc: true
use_pooling: true
CSRF_COOKIE_SECURE: false
DATABASES:
default:
Expand Down
6 changes: 5 additions & 1 deletion configuration_files/discovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL: http://localhost:18000/oauth2
BACKEND_SERVICE_EDX_OAUTH2_SECRET: discovery-backend-service-secret
CACHES:
default:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
BACKEND: django.core.cache.backends.memcached.PyMemcacheCache
KEY_PREFIX: discovery
LOCATION:
- edx.devstack.memcached:11211
OPTIONS:
no_delay: true
ignore_exc: true
use_pooling: true
CELERY_BROKER_URL: redis://:[email protected]:6379/
CORS_ORIGIN_WHITELIST: []
CSRF_COOKIE_SECURE: false
Expand Down
6 changes: 5 additions & 1 deletion configuration_files/insights.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ APPLICATION_NAME: Insights
BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL: http://edx.devstack.lms:18000/oauth2
CACHES:
default:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
BACKEND: django.core.cache.backends.memcached.PyMemcacheCache
KEY_PREFIX: default_env-default_deployment-insights
LOCATION:
- edx.devstack.memcached:11211
OPTIONS:
no_delay: true
ignore_exc: true
use_pooling: true
CDN_DOMAIN: null
CMS_COURSE_SHORTCUT_BASE_URL: http://edx.devstack.lms:18000/course
COURSE_API_URL: http://edx.devstack.lms:18000/api/courses/v1/
Expand Down
6 changes: 5 additions & 1 deletion configuration_files/registrar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL: http://localhost:18000/oauth2
BACKEND_SERVICE_EDX_OAUTH2_SECRET: registrar-backend-service-secret
CACHES:
default:
BACKEND: django.core.cache.backends.memcached.MemcachedCache
BACKEND: django.core.cache.backends.memcached.PyMemcacheCache
KEY_PREFIX: registrar
LOCATION:
- edx.devstack.memcached:11211
OPTIONS:
no_delay: true
ignore_exc: true
use_pooling: true
CELERY_ALWAYS_EAGER: false
CELERY_BROKER_HOSTNAME: ''
CELERY_BROKER_PASSWORD: ''
Expand Down

0 comments on commit 212b03e

Please sign in to comment.