Skip to content

Commit

Permalink
Revert "Explore LocMemCache to reduce complexity"
Browse files Browse the repository at this point in the history
This reverts commit 195d09b.
  • Loading branch information
robhudson committed Jun 20, 2024
1 parent d66cd54 commit c131489
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions bedrock/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@

# cache for Fluent files
CACHES["fluent"] = {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"BACKEND": "bedrock.base.cache.SimpleDictCache",
"LOCATION": "fluent",
"TIMEOUT": FLUENT_CACHE_TIMEOUT,
"OPTIONS": {
Expand All @@ -295,7 +295,7 @@

# cache for product details
CACHES["product-details"] = {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"BACKEND": "bedrock.base.cache.SimpleDictCache",
"LOCATION": "product-details",
"OPTIONS": {
"MAX_ENTRIES": 200, # currently 104 json files
Expand All @@ -305,7 +305,7 @@

# cache for release notes
CACHES["release-notes"] = {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"BACKEND": "bedrock.base.cache.SimpleDictCache",
"LOCATION": "release-notes",
"TIMEOUT": 5,
"OPTIONS": {
Expand All @@ -316,7 +316,7 @@

# cache for externalfiles
CACHES["externalfiles"] = {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"BACKEND": "bedrock.base.cache.SimpleDictCache",
"LOCATION": "externalfiles",
"OPTIONS": {
"MAX_ENTRIES": 10, # currently 2 files
Expand All @@ -326,7 +326,7 @@

# cache for generated QR codes
CACHES["qrcode"] = {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"BACKEND": "bedrock.base.cache.SimpleDictCache",
"LOCATION": "qrcode",
"TIMEOUT": None,
"OPTIONS": {
Expand Down
2 changes: 1 addition & 1 deletion bedrock/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def data_path(*args):

CACHES = {
"default": {
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"BACKEND": "bedrock.base.cache.SimpleDictCache",
"LOCATION": "default",
"TIMEOUT": 600,
"OPTIONS": {
Expand Down

0 comments on commit c131489

Please sign in to comment.