Thumbnails and File Cache Handling

Permalink 1 user found helpful
Hi there,

My custom block creates a lot of thumbnails by the image helper function "getThumbnail()". This function creates new thumbnail images inside the files/cache folder. This is fine, but I don't know how to delete this files at some point.

Does Concrete5 this job for me or should I take care to empty the file cache by my self?

View Replies: View Best Answer
Mnkras replied on at Permalink Reply
there is a clear cache button in the dashboard, you can use that to clear it out.
Mireck78 replied on at Permalink Reply
The delete cache button in the dashboard deletes just the page cache, not the file cache?
mesuva replied on at Permalink Best Answer Reply
I believe the clear cache function triggers the caching system to clear block/page data and doesn't touch any of resized images stored in /files/cache.

If you are using the default file caching of concrete5 (instead of something like APC, xcache, etc), you'll see a bunch of zend_cache files in the /files/cache folder. Clearing the cache will blow those away, but not touch the images.

There currently isn't a feature in dashboard that clears out those images. You'll need to manually empty that folder - the system will just recreate the files it can't find as needed.