Skip to content

Commit

Permalink
Fix Media Cache Handler (#16992)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek authored Nov 11, 2024
1 parent 5e934c7 commit 8ff1695
Showing 1 changed file with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,11 @@ public DefaultMediaFileStoreCacheEventHandler(IMediaFileStoreCacheFileProvider m
}

public override Task MediaDeletedDirectoryAsync(MediaDeletedContext context)
{
_mediaFileStoreCacheFileProvider.TryDeleteDirectoryAsync(context.Path);

return Task.CompletedTask;
}
=> _mediaFileStoreCacheFileProvider.TryDeleteDirectoryAsync(context.Path);

public override Task MediaDeletedFileAsync(MediaDeletedContext context)
{
_mediaFileStoreCacheFileProvider.TryDeleteFileAsync(context.Path);

return Task.CompletedTask;
}
=> _mediaFileStoreCacheFileProvider.TryDeleteFileAsync(context.Path);

public override Task MediaMovedAsync(MediaMoveContext context)
{
_mediaFileStoreCacheFileProvider.TryDeleteFileAsync(context.OldPath);

return Task.CompletedTask;
}
=> _mediaFileStoreCacheFileProvider.TryDeleteFileAsync(context.OldPath);
}

0 comments on commit 8ff1695

Please sign in to comment.