Skip to content

Commit

Permalink
Fix background cache not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Apr 4, 2024
1 parent 9778da6 commit c01d4d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middlewares/cache_response_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,4 +173,4 @@ async def _set_cached_response(url: URL, cached: CachedResponse) -> None:
logging.debug('Caching response for %r', key)

async with redis() as conn:
await conn.set(key, value, ex=ttl, nx=True)
await conn.set(key, value, ex=ttl)

0 comments on commit c01d4d1

Please sign in to comment.