Skip to content

Commit bc04622

Browse files
committed
Refactor settings.py for improved readability and formatting
1 parent d3cff4f commit bc04622

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

blt/settings.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -409,16 +409,24 @@
409409
}
410410
}
411411
else:
412+
# temp to check memory usage
412413
CACHES = {
413414
"default": {
414-
"BACKEND": "django_redis.cache.RedisCache",
415-
"LOCATION": os.environ.get("REDISCLOUD_URL"),
416-
"OPTIONS": {
417-
"CLIENT_CLASS": "django_redis.client.DefaultClient",
418-
},
415+
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
416+
"LOCATION": "unique-snowflake",
419417
}
420418
}
421419

420+
# CACHES = {
421+
# "default": {
422+
# "BACKEND": "django_redis.cache.RedisCache",
423+
# "LOCATION": os.environ.get("REDISCLOUD_URL"),
424+
# "OPTIONS": {
425+
# "CLIENT_CLASS": "django_redis.client.DefaultClient",
426+
# },
427+
# }
428+
# }
429+
422430
if DEBUG or TESTING:
423431
anon_throttle = 100000
424432
user_throttle = 100000

0 commit comments

Comments
 (0)