We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 983fa5c commit 19bf159Copy full SHA for 19bf159
app/services/location/jhu.py
@@ -46,7 +46,7 @@ async def get(self, loc_id): # pylint: disable=arguments-differ
46
)
47
48
49
-@cached(cache=TTLCache(maxsize=1024, ttl=1800))
+@cached(cache=TTLCache(maxsize=128, ttl=1800))
50
async def get_category(category):
51
"""
52
Retrieves the data for the provided category. The data is cached for 1 hour.
app/services/location/nyt.py
@@ -66,7 +66,7 @@ def get_grouped_locations_dict(data):
66
return grouped_locations
67
68
69
-@cached(cache=TTLCache(maxsize=1024, ttl=3600))
+@cached(cache=TTLCache(maxsize=128, ttl=3600))
70
async def get_locations():
71
72
Returns a list containing parsed NYT data by US county. The data is cached for 1 hour.
0 commit comments