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?
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.
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.
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
Windows search function.
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.jpg
you'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.
Thanks Rob, I see them now. I was looking at a site I hadn't installed ImageGen in.....yet ;) Thought I had, Doh!
Craig
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.
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
is working on a reply...