Skip to content

Commit

Permalink
ECIL-209 - Access Request - Link to Exporter Typeahead search not wor…
Browse files Browse the repository at this point in the history
…king
  • Loading branch information
chris-pettinga committed Oct 30, 2024
1 parent 623b968 commit 9714a7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,10 +293,18 @@
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": REDIS_URL,
"LOCATION": REDIS_URL + "/0",
"OPTIONS": {"CLIENT_CLASS": "django_redis.client.DefaultClient"},
},
"django_compressor_cache": {"BACKEND": "django.core.cache.backends.locmem.LocMemCache"},
# Using a separate cache for select2 to avoid conflicts with other caches, this is the recommended approach
"select2": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": REDIS_URL + "/2",
"OPTIONS": {"CLIENT_CLASS": "django_redis.client.DefaultClient"},
# 1 hour timeout to avoid accidental expiry leading to failed AJAX requests
"TIMEOUT": 60 * 60 * 1,
},
}

SESSION_ENGINE = "django.contrib.sessions.backends.cache"
Expand All @@ -309,7 +317,7 @@
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True

SELECT2_CACHE_BACKEND = "default"
SELECT2_CACHE_BACKEND = "select2"
SELECT2_CSS = os.path.join(STATIC_URL, "3rdparty/select2/select2.min.css")
SELECT2_JS = os.path.join(STATIC_URL, "3rdparty/select2/select2.min.js")

Expand Down
1 change: 1 addition & 0 deletions pii-ner-exclude.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5080,3 +5080,4 @@ Email Attachments
Missing Constabulary Email Attachments
Internal Server Error
Response Details
AJAX

0 comments on commit 9714a7d

Please sign in to comment.