Skip to content

Commit

Permalink
limit size of cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fgregg committed Jan 29, 2024
1 parent 6d3b255 commit 4223b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camp_fin/management/commands/_cache_get_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4223b8d

Please sign in to comment.