Skip to content

Commit

Permalink
settings: Change from database cache to local memory cache
Browse files Browse the repository at this point in the history
Because I think lots of trips to the database is slowing down page load.
  • Loading branch information
Bjwebb committed Oct 13, 2023
1 parent 05a3469 commit 313b677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iati/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,12 +643,12 @@
# Caches
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'wagtail_cache',
'TIMEOUT': 86400,
},
'renditions': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'wagtail_renditions_cache',
'TIMEOUT': 86400,
}
Expand Down

0 comments on commit 313b677

Please sign in to comment.