This commit is contained in:
@@ -745,9 +745,7 @@ async def unpublish_shout(_, info, shout_id: int):
|
|||||||
|
|
||||||
# Инвалидация кэша
|
# Инвалидация кэша
|
||||||
try:
|
try:
|
||||||
# Передаем slug или ID, если slug нет
|
await invalidate_shout_related_cache(shout.id, author_id)
|
||||||
cache_key = shout.slug if shout.slug else shout.id
|
|
||||||
await invalidate_shout_related_cache(cache_key)
|
|
||||||
await invalidate_shouts_cache()
|
await invalidate_shouts_cache()
|
||||||
logger.info(f"Cache invalidated after unpublishing shout {shout_id}")
|
logger.info(f"Cache invalidated after unpublishing shout {shout_id}")
|
||||||
except Exception as cache_err:
|
except Exception as cache_err:
|
||||||
|
|||||||
Reference in New Issue
Block a user