Skip to content

Commit

Permalink
Merge 8df1adf into 160c40e
Browse files Browse the repository at this point in the history
  • Loading branch information
Kilo59 committed May 4, 2020
2 parents 160c40e + 8df1adf commit 1641856
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: gunicorn app.main:APP -w 4 -k uvicorn.workers.UvicornWorker
web: gunicorn app.main:APP -w 3 --max-requests 1000 --max-requests-jitter 1250 -k uvicorn.workers.UvicornWorker
4 changes: 2 additions & 2 deletions app/services/location/jhu.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async def get(self, loc_id): # pylint: disable=arguments-differ
)


@cached(cache=TTLCache(maxsize=128, ttl=1800))
@cached(cache=TTLCache(maxsize=4, ttl=1800))
async def get_category(category):
"""
Retrieves the data for the provided category. The data is cached for 30 minutes locally, 1 hour via shared Redis.
Expand Down Expand Up @@ -129,7 +129,7 @@ async def get_category(category):
return results


@cached(cache=TTLCache(maxsize=1024, ttl=1800))
@cached(cache=TTLCache(maxsize=1, ttl=1800))
async def get_locations():
"""
Retrieves the locations from the categories. The locations are cached for 1 hour.
Expand Down
2 changes: 1 addition & 1 deletion app/services/location/nyt.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def get_grouped_locations_dict(data):
return grouped_locations


@cached(cache=TTLCache(maxsize=128, ttl=3600))
@cached(cache=TTLCache(maxsize=1, ttl=3600))
async def get_locations():
"""
Returns a list containing parsed NYT data by US county. The data is cached for 1 hour.
Expand Down

0 comments on commit 1641856

Please sign in to comment.