fix(auth): fill prefetch with serialized cache payloads

This commit is contained in:
Devin AI 2026-11-09 03:05:25 +00:00
parent db20818ece
commit dd9c35b86f

View file

@ -297,8 +297,9 @@ async def _write_back(
)
shared: Final = cache.shared
if generation is not None:
assert shared is not None
for cache_key, payload, ttl in payloads:
cache.set_if_generation(cache_key, payload, generation, ttl)
shared.set_if_generation(cache_key, payload, generation, ttl)
return
if shared is not None:
with service_target(AUTH_OBJECTS_TARGET):