Skip to content

Commit

Permalink
switch to locmemcache for select2
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Sep 20, 2024
1 parent eaeb3e1 commit b3d5edb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pipsevents/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@
'LOCATION': 'test-pips',
},
"select2": {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'test-select2',
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "select2",
}
}
else: # pragma: no cover
Expand All @@ -135,9 +135,13 @@
"BACKEND": 'django.core.cache.backends.filebased.FileBasedCache',
"LOCATION": root("cache"),
},
# "select2": {
# "BACKEND": 'django.core.cache.backends.filebased.FileBasedCache',
# "LOCATION": os.path.join(root("cache"), "select2"),
# }
"select2": {
"BACKEND": 'django.core.cache.backends.filebased.FileBasedCache',
"LOCATION": os.path.join(root("cache"), "select2"),
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "select2",
}
}
SELECT2_CACHE_BACKEND = "select2"
Expand Down

0 comments on commit b3d5edb

Please sign in to comment.