We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd71db commit 1e51ccbCopy full SHA for 1e51ccb
services/web/server/src/simcore_service_webserver/security/_authz_policy.py
@@ -27,9 +27,14 @@
27
28
_logger = logging.getLogger(__name__)
29
30
-# Keeps a cache during bursts to avoid stress on the database
31
_SECOND = 1 # in seconds
32
-_AUTHZ_BURST_CACHE_TTL: Final = 5 * _SECOND
+_MINUTE: Final = 60 * _SECOND
+_AUTHZ_BURST_CACHE_TTL: Final = (
33
+ # Rationale: a user's access to a product does not change that frequently
34
+ # Keeps a cache during bursts to avoid stress on the database
35
+ 30
36
+ * _MINUTE
37
+)
38
39
40
@contextlib.contextmanager
0 commit comments