I'm hoping you can help. We have a site that has been on a live server for about 3 weeks now. In that time the App_Data Cache folder has increased to in excess of 20GB. This seems very high considering that aren't that many images in the site.
You should be able to delete everything in App_Data as it isn't required to run Umbraco - it's just a cache. Most files will be recreated, apart from log files (but you don't usually need to retain these).
It's the "Cache" folder in App_Data that is getting massive. When I browse down the tree it's image caches. It's as if a new cache is being created for each visit and previous caches not removed.
Umbraco uses a 3rd party tool called ImageProcessor - http://imageprocessor.org/ - this basically re-sizes images and then caches them. So that will be the cache. Though generally it shouldn't get that large and should be self-cleansing.
Umbraco does ship with a fairly old version, so you could try deleting the cache (it will get recreated) and then installing a newer version - I usually do this through NuGet. There are two packages :
I'll have a look into this, unfortunately this site developed with Umbraco being installed via nuget much to my frustration. I joined the project most of the way through development and it is due to go live shortly (a week or so).
Have you had any experience manually updating imageprocessor? Will Umbraco work with any version of it do you know?
Are you using 100% width in tandom with the image processor (i.e is there a query after the image file type) on any images it might be caching a different cropped images as every users browser width is slightly different. Also when your testing the site you might be creating hundreds of cropped images as you change your browser size.
You could probably just extract the DLL from the Nuget package (you can open them with any program that opens zip files and the DLL will be in the lib folder) and overwrite the ones in Bin folder. Obviously make a backup first :)
Firstly, thank you for your help with this. I updated the "image processor" aspect of the project by using their Umbraco Package. And so far it seems to have resolved the issue.
Just thought you might all want to know the outcome.
App_Data Cache size problem
Hi guys,
I'm hoping you can help. We have a site that has been on a live server for about 3 weeks now. In that time the App_Data Cache folder has increased to in excess of 20GB. This seems very high considering that aren't that many images in the site.
I've read this thread: Imagegen Large Cache Bug
However, we aren't using Imagegen and there is no Imagegen or imagegen.sample config files in the solution.
How can we stop this cache from getting so big? It's increasing by about 3MB per visit.
Hope you can help.
Nik
Which folder inside App_Data is the problem?
You should be able to delete everything in App_Data as it isn't required to run Umbraco - it's just a cache. Most files will be recreated, apart from log files (but you don't usually need to retain these).
Hi Dan,
It's the "Cache" folder in App_Data that is getting massive. When I browse down the tree it's image caches. It's as if a new cache is being created for each visit and previous caches not removed.
Nik
Umbraco uses a 3rd party tool called ImageProcessor - http://imageprocessor.org/ - this basically re-sizes images and then caches them. So that will be the cache. Though generally it shouldn't get that large and should be self-cleansing.
Umbraco does ship with a fairly old version, so you could try deleting the cache (it will get recreated) and then installing a newer version - I usually do this through NuGet. There are two packages :
https://www.nuget.org/packages/ImageProcessor/
https://www.nuget.org/packages/ImageProcessor.Web/
You should only use NuGet if you have installed Umbraco via NuGet, though.
Hi Dan,
I'll have a look into this, unfortunately this site developed with Umbraco being installed via nuget much to my frustration. I joined the project most of the way through development and it is due to go live shortly (a week or so).
Have you had any experience manually updating imageprocessor? Will Umbraco work with any version of it do you know?
Nik
Hi Nik,
Are you using 100% width in tandom with the image processor (i.e is there a query after the image file type) on any images it might be caching a different cropped images as every users browser width is slightly different. Also when your testing the site you might be creating hundreds of cropped images as you change your browser size.
The latest versions of Umbraco works with latest versions of Image Processor. There is an Umbraco package version available at https://our.umbraco.org/projects/collaboration/imageprocessor/
You could probably just extract the DLL from the Nuget package (you can open them with any program that opens zip files and the DLL will be in the lib folder) and overwrite the ones in Bin folder. Obviously make a backup first :)
Hi guys,
Firstly, thank you for your help with this. I updated the "image processor" aspect of the project by using their Umbraco Package. And so far it seems to have resolved the issue.
Just thought you might all want to know the outcome.
Thanks again.
Glad it works - thanks for letting us know! :)
is working on a reply...