I'm using ImageResizer.NET (with diskcache plugin) and its awesome
DiskCache plugin is initialized as documentation says, with default options:<add name="DiskCache" />
... no other confuguration, just defaults
I assumed defaults are: subfolders="32"
and maximumItemsPerFolder="1000"
The problem is: - in each folder (in imagecache folder) i have more than 3000 images, not only 1000, so my disk space is not enough to hadle this number of cached images
Questions are :
Am i doing something wrong with default configuration (i assume it should be 32 folders x max 1000 images=32 000 cached images maximum)
Or, how to limit each folder in imagecache to have maximum 1000 last added images
You need to enable cache cleanup; by default it is disabled.
<diskcache autoClean="true" />
autoClean
When true, will keep a background thread running to 'clean' unused items from the disk cache. This background thread uses smart 'activity sensing' to avoid doing cleanup work when the site is busy. Defaults to false, since the cleanup system is still in beta.