Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Image Processor with Azure storage as cache provider

Vote:
 

We are using imageprocessor in DXC.  All works, but is there a way to clear the cached thumbnails in the containers that start with "3p!_".   I can do it with the api and write a bunch of code but not sure if someone has already did this.  We are finding that when some editor replaces the image, the original image changes just fine, but the thumbnails still remain the old image.  I have wrote a scheduled job to clean all the thumbnails from cache in Azure storage but if there is a better way of handling this, I am all ears.  Cheers

#249055
Feb 23, 2021 11:59
Vote:
 

Hi Joshua, not answering your actual question BUT I would instruct the editors to not update (overwrite) existing images - why? Because it is not just an issue with the "environment" cache but also used CDN (unless you have automatic cache invalidation) BUT also issue with browsers and any public proxy, they might have already cached the image and it will not automatically update for them. So better instruct the editors to not re-use an existing image but upload a new edited version with a new name - less problems with public caching, browser caching etc. Just my 2 cents ;)

#249163
Feb 24, 2021 16:34
Vote:
 

I am going to agree with Antti on this one.  I have run into several issues with clients updating files and expecting the updated to file to be reflected asap. Best bet is to have them break the caching by providing a new name for the file.

#249266
Feb 25, 2021 23:54
Vote:
 

Thanks with your responses.  I completely agree with all of this.  I have advised them before about this matter as well. I always use the analogy that think of it as a social security number assigned to the image.  That should never change throughout the life of the image.  This is the use case.  They name the image ie(119.png) after the identity in their PIM system.  That image is then referenced to a content item in episerver with 119 in a property of the block.  This block then pulls the 119 from their blob provider.  if it exists, it uses it, else it fetches from PIM and then associates it to the block.  Unfortunately, i don't have control over the image after that as it is saved in episerver and now becomes an ImageFile associated with that block.  Thats really the only usecase but again, i agree with both of you but unfortunately, its out of my hands and all i can do is educate the client.  Thank you both again.

#249287
Feb 26, 2021 13:00
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.