Copied to clipboard

Flag this post as spam?

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


  • Slax 2 posts 83 karma points
    Nov 14, 2017 @ 13:17
    Slax
    0

    Disable generate cached folder in imagegen

    Hello, I have question. Is it possible to disable creating cached folder with resized photos in ImageGen? I need disable creating this folder and create resized photo in memory everytime when user needs this photo.

    Thanks, Slawek

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Nov 14, 2017 @ 13:59
    Douglas Robar
    100

    Sorry, the purpose of ImageGen is to save your server from repeatedly making the same resized images, which take time, cpu, and memory. The ‘cached’ folders will be created.

    You could specify the ?nocache=true parameter. That won’t keep the cached file from being created but it will tell ImageGen to ignore any previously cached images and always resize the request as though it hadn’t been done before.

    You can also delete the ‘cached’ folder(s) periodically. ImageGen will created new ones as needed when new requests come in.

    Cheers, Doug

  • Slax 2 posts 83 karma points
    Nov 25, 2017 @ 09:18
    Slax
    1

    Thanks Douglas for response. I have more than 15k photos on my Umbraco and when I turn on ImageGen caching then photos size is more than 3GB. Without ImageGen photos size is about 1GB - this is the reason why I don't want cache photos. I found solution to not caching photos if size is less or the same as original. This should resolve my problem because my original photos have similar size.

    Cheers, Slawek

Please Sign in or register to post replies

Write your reply to:

Draft