Skip to content

Commit 4e958f6

Browse files
committed
[UPT][#12] Cacheing another route.
1 parent 0d3bf39 commit 4e958f6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/src/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626

2727
@app.get("/{username}")
28+
@cache(expire=60 * 60 * 24)
2829
async def user_data(username: str):
2930
if get_settings().ENVIRONMENT == "DEV":
3031
logger.debug("DEV MODE")

0 commit comments

Comments
 (0)