I cleaned my cach not knowing that this will also purge my gallery. Would love to have a feature to recreate it
You can use the galleryplus-app (which already backports some features of the future gallery app for NC 11) where you can recreate thumbnails from command line: