locked
Deleting cached image with the same Uri RRS feed

  • Question

  • User370716 posted

    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>

    Friday, February 8, 2019 1:23 PM

All replies

  • User76049 posted

    @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)

    Friday, February 8, 2019 1:39 PM