From e7241be995213f98c46d94d9d00063d200865dab Mon Sep 17 00:00:00 2001 From: Edi Wang Date: Tue, 7 May 2024 14:22:26 +0800 Subject: [PATCH] fix cache --- src/Moonglade.Core/PostFeature/UpdatePostCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Moonglade.Core/PostFeature/UpdatePostCommand.cs b/src/Moonglade.Core/PostFeature/UpdatePostCommand.cs index 3959822ef..52154f521 100644 --- a/src/Moonglade.Core/PostFeature/UpdatePostCommand.cs +++ b/src/Moonglade.Core/PostFeature/UpdatePostCommand.cs @@ -149,7 +149,7 @@ await _tagRepo.AddAsync(new() await _postRepo.UpdateAsync(post, ct); - _cache.Remove(BlogCachePartition.Post.ToString(), guid.ToString()); + _cache.Remove(BlogCachePartition.Post.ToString(), checkSum.ToString()); return post; } }