Deleting cached image with the same Uri

How do i delete cached image with the same Uri (old cached image always served after user change his profile image which has the same Uri)
I tried with FFImageLoading CachedImage.InvalidateCache(_userProfileImagePath, CacheType.All, true); and set CachingEnabled="False" with regular image
<ImageButton Command="{Binding SetPageCommand}" CommandParameter="{Binding MenuItems[8].TargetType}"> <ImageButton.Source> <UriImageSource Uri="{Binding UserProfileImagePath}" CachingEnabled="False"/> </ImageButton.Source> </ImageButton>

Answers

  • NMackayNMackay GBInsider, University mod

    @KhalidHex said:
    How do i delete cached image with the same Uri (old cached image always served after user change his profile image which has the same Uri)
    I tried with FFImageLoading CachedImage.InvalidateCache(_userProfileImagePath, CacheType.All, true); and set CachingEnabled="False" with regular image
    <ImageButton Command="{Binding SetPageCommand}" CommandParameter="{Binding MenuItems[8].TargetType}"> <ImageButton.Source> <UriImageSource Uri="{Binding UserProfileImagePath}" CachingEnabled="False"/> </ImageButton.Source> </ImageButton>

    Not sure if this is any help

    http://www.itworksonmymachine.net/index.php/2015/04/02/xamarin-tips-and-tricks-1-uriimagesource/

    It's also referenced here.

    You might have zap the cached images, surprised this is still such as issue but it appears to be
    https://forums.xamarin.com/discussion/26773/clear-image-cache (check the last 3 messages)

Sign In or Register to comment.