Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Craig100 1136 posts 2523 karma points c-trib
    Sep 21, 2014 @ 17:11
    Craig100
    0

    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?

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Sep 21, 2014 @ 18:45
    Jeavon Leopold
    0

    Hi Craig,

    ImageProcessor comes with server side caching, check /App_Data/cache/ to see all of the generated caches.

    Jeavon

  • Craig100 1136 posts 2523 karma points c-trib
    Sep 21, 2014 @ 18:51
    Craig100
    0

    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

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Sep 21, 2014 @ 19:01
    Jeavon Leopold
    100

    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

  • Craig100 1136 posts 2523 karma points c-trib
    Sep 21, 2014 @ 19:11
    Craig100
    0

    That's great. I didn't realise it did that. :)

    Thanks

    Craig

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Sep 21, 2014 @ 20:13
    Jeavon Leopold
    0

    Yeah ImageProcessor is great! With v2 it's also very plugable, I've tried out the WebP plugin with Slimsy and it worked perfectly!

Please Sign in or register to post replies

Write your reply to:

Draft