I use the CircleImage in my app. to show the user profile picture, but when I upload a new "user profile" picture on the server and try to update the image with the new version (Noticed that the image uri is the same), it is still the same _
I have search for a way to invalidate the cache, but none of the solution I use work !
Even when I restart the application I get the old version of the image.
Here is my code :
(MediaImageSource as UriImageSource).CacheValidity = new TimeSpan(-1);
FFImageLoading.Forms.CachedImage.InvalidateCache(MediaImageSource, FFImageLoading.Cache.CacheType.All, true);
FFImageLoading.ImageService.Instance.InvalidateCacheAsync(FFImageLoading.Cache.CacheType.All);
I haven't find anything about caching on the ImageCircle, but it will be really useful :-)
Hi,
I use the CircleImage in my app. to show the user profile picture, but when I upload a new "user profile" picture on the server and try to update the image with the new version (Noticed that the image uri is the same), it is still the same _
I have search for a way to invalidate the cache, but none of the solution I use work ! Even when I restart the application I get the old version of the image.
Here is my code :
(MediaImageSource as UriImageSource).CacheValidity = new TimeSpan(-1); FFImageLoading.Forms.CachedImage.InvalidateCache(MediaImageSource, FFImageLoading.Cache.CacheType.All, true); FFImageLoading.ImageService.Instance.InvalidateCacheAsync(FFImageLoading.Cache.CacheType.All);
I haven't find anything about caching on the ImageCircle, but it will be really useful :-)
Any idea ?
Thx