Skip to content

Commit

Permalink
refactor: reduce session cache TTL to 1Hr
Browse files Browse the repository at this point in the history
  • Loading branch information
janaka committed Oct 2, 2023
1 parent 7dd92b7 commit 06a4aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/docq/support/auth_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from ..config import ENV_VAR_DOCQ_COOKIE_HMAC_SECRET_KEY, SESSION_COOKIE_NAME

TTL_HOURS = 4
TTL_HOURS = 1
TTL_SEC = 60 * 60 * TTL_HOURS
CACHE_CONFIG = (1024 * 1, TTL_SEC)
AUTH_KEY = Fernet.generate_key()
Expand Down

0 comments on commit 06a4aca

Please sign in to comment.