Skip to content

Commit

Permalink
Refactor settings.py for improved readability and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT committed Jan 2, 2025
1 parent d3cff4f commit bc04622
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions blt/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,16 +409,24 @@
}
}
else:
# temp to check memory usage
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": os.environ.get("REDISCLOUD_URL"),
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
},
"BACKEND": "django.core.cache.backends.locmem.LocMemCache",
"LOCATION": "unique-snowflake",
}
}

# CACHES = {
# "default": {
# "BACKEND": "django_redis.cache.RedisCache",
# "LOCATION": os.environ.get("REDISCLOUD_URL"),
# "OPTIONS": {
# "CLIENT_CLASS": "django_redis.client.DefaultClient",
# },
# }
# }

if DEBUG or TESTING:
anon_throttle = 100000
user_throttle = 100000
Expand Down

0 comments on commit bc04622

Please sign in to comment.