From 4223b8d5ea20b407298e33719e9a7c03ef3cf69d Mon Sep 17 00:00:00 2001 From: Forest Gregg Date: Mon, 29 Jan 2024 13:49:56 -0500 Subject: [PATCH] limit size of cache --- camp_fin/management/commands/_cache_get_patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camp_fin/management/commands/_cache_get_patch.py b/camp_fin/management/commands/_cache_get_patch.py index 5e8283c..1b6a7de 100644 --- a/camp_fin/management/commands/_cache_get_patch.py +++ b/camp_fin/management/commands/_cache_get_patch.py @@ -5,7 +5,7 @@ def cache_func(func): @functools.wraps(func) - @functools.lru_cache(maxsize=None) + @functools.lru_cache(maxsize=1024) def with_cache(self, *args, **kwargs): return func(self, *args, **kwargs)