if you use the bcc code you don't link to the cache - you link to the image page directly. The thumbnail comes from the cache.
And if you really like you can use a link as well that uses the image.php and does generate the thumbnail if needed.
http://www.tinywebgallery.com/demo/inde ... anager.jpg
links to the image page. if you use image.php instead you have to set the twg_type=thumb in the url for getting the thumbnail.
But cleaning the cache is actually not a good idea - all the cache files have to be generated again. And TWG is deleting unused cache images by itself (default is 42 days
- thumbnails are never deleted because they are normally only 3-4k.).
And if recreated they get the same cache name again.
/Michael