From 780a428f9d51f783bd7b39929924c43f8460a180 Mon Sep 17 00:00:00 2001 From: "Gavin M. Roy" Date: Mon, 6 Apr 2020 18:23:53 -0400 Subject: [PATCH] Specify the max size of the lrucache for Python 3.7 --- sprockets_postgres.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sprockets_postgres.py b/sprockets_postgres.py index d7ab758..2c04970 100644 --- a/sprockets_postgres.py +++ b/sprockets_postgres.py @@ -169,7 +169,7 @@ class ApplicationMixin: return await cursor.fetchall() return None - @functools.lru_cache + @functools.lru_cache(2) def _postgres_query_timeout(self, timeout: typing.Optional[int] = None) -> int: """Return query timeout, either from the specified value or