Skip to content

Commit

Permalink
build: update local course-discovery cache backend
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Sep 6, 2023
1 parent 2f2307f commit 89cf455
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .ci/docker-compose-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,12 @@ services:
- "es"
- "memcached"
environment:
CACHE_BACKEND: "django.core.cache.backends.memcached.MemcachedCache"
CACHE_BACKEND: "django.core.cache.backends.memcached.PyMemcacheCache"
CACHE_LOCATION: "memcached:11211"
CACHE_OPTIONS:
no_delay: true
ignore_exc: true
use_pooling: true
CONN_MAX_AGE: 60
DB_ENGINE: "django.db.backends.mysql"
DB_NAME: "discovery"
Expand Down
3 changes: 2 additions & 1 deletion course_discovery/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
# See: https://docs.djangoproject.com/en/dev/ref/settings/#caches
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache',
'LOCATION': '127.0.0.1:11211',
'OPTIONS': {"no_delay": True, "ignore_exec": True, "use_pooling": True},
}
}
# END CACHE CONFIGURATION
Expand Down

0 comments on commit 89cf455

Please sign in to comment.