Skip to content

Commit

Permalink
Fixed cache clearing issue in delete file
Browse files Browse the repository at this point in the history
  • Loading branch information
AlenGeoAlex committed Oct 14, 2024
1 parent ad82b2a commit df406f9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public async Task<DeleteFileResponse> Handle(DeleteFileCommand request, Cancella
else
{
context.CacheControl.AddExactKeyToExpire(CacheConstants.FileIdCacheKey, deletedFile.Id.ToString());
context.CacheControl.AddKeyToExpire(CacheConstants.FileListCacheKey, context.Requester.UserId.ToString());
}
}
return new DeleteFileResponse();
Expand Down

0 comments on commit df406f9

Please sign in to comment.