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
    Nov 01, 2013 @ 21:57
    Craig100
    0

    Updating to 2.9 how to remove cached folders?

    Hi,

    Just looking at upgrading a site to the latest V2.9. The docs say to delete all cached folders in the site. I thought it must be the folders under the Media directory but then if I delete them I'll delete all the site's images.

    Probably being a bit dim, but can someone tell me where they are please?

    Thanks,

    Craig

  • sun 403 posts 395 karma points
    Nov 02, 2013 @ 02:03
    sun
    0

    Windows search function.

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Nov 02, 2013 @ 03:47
    Douglas Robar
    1

    Hi, Craig,

    ImageGen creates a 'cached' folder to store the generated images. The 'cached' folder is created below the folder containing the image so, depending on how you're using ImageGen, you might have a single 'cached' folder or lots of them.

    For example, if you resize /media/1234/myphoto.jpgyou'll find a /media/1234/cached folder that contains the resized image.

    Likewise, if you have a lot of images in a folder named /screenshots you'll have a /screenshots/cached folder that contains resized images.

    I'm working on a utility to find and delete cached folders to make things simpler but for now, search for folders named 'cached' and remove them.

    cheers,
    doug.

  • Craig100 1136 posts 2523 karma points c-trib
    Nov 02, 2013 @ 21:18
    Craig100
    0

    Thanks Rob, I see them now. I was looking at a site I hadn't installed ImageGen in.....yet ;) Thought I had, Doh!

    Craig

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Nov 02, 2013 @ 21:20
    Douglas Robar
    0

    In that case, be sure to use the full ImageGen 2.9 package rather than the updater; that will give you the web.config entries and the /config/imagegen.config file to get you started. If you've already installed the updater but hadn't ever installed the full package it's safe to install the full package after the updater.

    cheers,
    doug.

  • Craig100 1136 posts 2523 karma points c-trib
    Nov 02, 2013 @ 23:28
    Craig100
    0

    Nice little batch file for bulk removal of all named subdirectories here: http://stackoverflow.com/questions/10393082/how-to-remove-all-folders-of-name-x-within-a-directory-using-cmd-batch-file

    Ideal for removing all "Cached" directories under "Media/*/"

    Craig

Please Sign in or register to post replies

Write your reply to:

Draft