Copied to clipboard

Flag this post as spam?

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


  • Chad Rosenthal 272 posts 474 karma points
    Dec 31, 2009 @ 17:32
    Chad Rosenthal
    0

    Where do the images cache?

    It seems like the displaying of images is really slow, which makes me think that the images aren't being cached properly and that they are rebuilding each time.

    Where should I look to see if this is true?

    Thanks,.
    C

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 31, 2009 @ 19:26
    Douglas Robar
    0

    Hi, Chad,

    Text-only images that are generated are saved to the /data/cached folder.

    For image-related images, they are saved in a 'cached' folder directly beneath the folder that contains the image. For example... if you had an image in the /media/1234 folder, ImageGen would create a /media/1234/cached folder to hold any resized images.

    Be sure that you're running the v2.2 patch update as well, as it has an important caching bug fix.

    cheers,
    doug.

  • Chad Rosenthal 272 posts 474 karma points
    Dec 31, 2009 @ 19:32
    Chad Rosenthal
    0

    Thanks. They're definitely caching. Must be a slow server and the fact that I'm using VistaDB that is causing the issues.

    -C

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Dec 31, 2009 @ 19:40
    Douglas Robar
    1

    Yes, that might be it.

    Remember that the umbraco.library:GetMedia() call hits the database, which is therefore slower than calls that just hit the xml content cache. You can make the GetMedia() calls faster by setting the second parameter to 'false' so it doesn't search sub-folders. And, if you have fewer images in a media 'folder' you'll also have faster response from the GetMedia() call because you'll have fewer database requests.

    VistaDB is also slower than other databases, which magnifies the issue somewhat. In a production environment I'd use something other than VistaDB to get the performance boost.

    Another option is to use the cached media package in the umbraco projects section. http://our.umbraco.org/projects/cultiv-mediacache Though I've not used it myself it sounds very promising!

    cheers,
    doug.

  • Hendy Racher 863 posts 3849 karma points MVP 2x admin c-trib
    Dec 17, 2010 @ 15:44
    Hendy Racher
    0

    Hi Doug,

    What are the chances of being able to specify the cache location in the config file in a future update ? That'd be really useful for locked down sites where write permission is only given to specific folders.

    Thanks,

    Hendy

Please Sign in or register to post replies

Write your reply to:

Draft