Will there come a time in the not too distant future where the images generated will be cached and then called in a similar way to imageGen? I'm just a little uncomfortable with slamming the processor to regenerate loads of images every time each one is called. I'm using slimsy on a low trafficed site at the moment so it's not so much of an issue, but for a high trafficed site I'd want caching.
So if an image has been generated at a particular size, say by being viewed on a phone for the first time, is that cached image then used for the next call for that image at that size? Is this behaviour out of the box or has to be configured?
Yes, that's correct. Of course you will only have requests every 160 pixels (unless you've change Slimmage config).
This is out of the box without any config, you can add the ImageProcessor config NuGet package if you want to change any settings. Configuring cache settings is detailed here
Cache to server
Will there come a time in the not too distant future where the images generated will be cached and then called in a similar way to imageGen? I'm just a little uncomfortable with slamming the processor to regenerate loads of images every time each one is called. I'm using slimsy on a low trafficed site at the moment so it's not so much of an issue, but for a high trafficed site I'd want caching.
Is there a way of doing this already?
Thoughts?
Hi Craig,
ImageProcessor comes with server side caching, check /App_Data/cache/ to see all of the generated caches.
Jeavon
Hi Jeavon,
So if an image has been generated at a particular size, say by being viewed on a phone for the first time, is that cached image then used for the next call for that image at that size? Is this behaviour out of the box or has to be configured?
Craig
Hi Craig,
Yes, that's correct. Of course you will only have requests every 160 pixels (unless you've change Slimmage config).
This is out of the box without any config, you can add the ImageProcessor config NuGet package if you want to change any settings. Configuring cache settings is detailed here
Jeavon
That's great. I didn't realise it did that. :)
Thanks
Craig
Yeah ImageProcessor is great! With v2 it's also very plugable, I've tried out the WebP plugin with Slimsy and it worked perfectly!
is working on a reply...