create_draft fix

This commit is contained in:
2025-05-21 18:29:46 +03:00
parent ebf9dfcf62
commit 5874d3ccae
8 changed files with 272 additions and 106 deletions

View File

@@ -461,8 +461,9 @@ async def publish_draft(_, info, draft_id: int):
session.commit()
# Инвалидируем кеш
invalidate_shouts_cache()
invalidate_shout_related_cache(shout.id)
cache_keys = [f"shouts:{shout.id}", ]
await invalidate_shouts_cache(cache_keys)
await invalidate_shout_related_cache(shout, author_id)
# Уведомляем о публикации
await notify_shout(shout.id)