Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crystal_toolkit/apps/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@

if SETTINGS.DEBUG_MODE:
# disable cache in debug
cache = Cache(app.server, config={"CACHE_TYPE": "null"})
cache = Cache(app.server, config={"CACHE_TYPE": "NullCache"})
else:
cache = Cache(
app.server,
config={
"CACHE_TYPE": "redis",
"CACHE_TYPE": "RedisCache",
"CACHE_REDIS_URL": os.getenv("REDIS_URL", SETTINGS.REDIS_URL),
},
)
Expand Down
4 changes: 2 additions & 2 deletions crystal_toolkit/core/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def __init__(
if cache:
self.cache = cache
elif SETTINGS.DEBUG_MODE:
self.cache = Cache(config={"CACHE_TYPE": "null"})
self.cache = Cache(config={"CACHE_TYPE": "NullCache"})
else:
self.cache = Cache(config={"CACHE_TYPE": "simple"})
self.cache = Cache(config={"CACHE_TYPE": "SimpleCache"})

self.layout = layout

Expand Down
Loading