Hi eil, in the thumbnail database there will be 2 files for each and every folder with thumbnails. The file names (e.g.1eb5699c986face40d43588f4d9f7237.dbits and 1eb5699c986face40d43588f4d9f7237.dat2) is basically the hash of the folder and thumbnail size with an * between them (e.g., H:\Pictures\Ireland Trip 2011\2011-06-29\*240x240). One file is the database (dat2) and the other stores the actual thumbnails (dbits). So if you have different thumbnail sizes there would be another set of thumbnail files, dat2 and dbits for that folder in the other size thumb as well (e.g., H:\Pictures\Ireland Trip 2011\2011-06-29\*128x128). There would also be a another set of thumbnail files for sub folders.
So for that particular menu item, the script will perform a thumbnail refresh of the existing caches in the thumbnail database associated with current folder and all its sub folders. It's been awhile and I'll look further later, but unlike the other option below it, that menu item only deals with existing caches. It's not building a new database if you had new folders because it is using the "existing" database to refresh those folders. It is strictly looking at the folders extracted from the database files in XY's thumbnail database directory and [
edit: also looking at existing thumbnail sizes in the databases. It compares both the folder in the database and the thumbnail size in the database against the current folder and subs.] It is going to take time depending on the the folder and subs size since it's using the same XY CID #501 to completely rebuild that cache. It's not just adding new thumbnails to the cache for files added to a folder.
[
Edit:The confusing difference between the rebuild thumbnail for current folder and subs is that the rebuild allows you to select thumbnails sizes to rebuild and it will build/rebuild for every sub folder in those sizes you specify and it does this
regardless of what is specified in the existing databases.]
The whole idea of the script was to clean up the database due to moved, deleted or renamed files etc. Unfortunately using CID #501 is the only way to do that properly. Sure you could create missing thumbnails, but that does not completely clean up and rebuild that folder's thumbnail cache files. If you only used CID #507 which creates missing thumbnails, you could still have old thumbnails remaining in the cache for images that were moved or deleted.
I'll look at it further since it's been awhile and let you know if it's different than what I stated.
Edit: I did quickly review the script and that is how it works. I made some clarifications.
By the way, I had noticed your wish a while back concerning "Move" thumbnails along with pictures here
viewtopic.php?f=5&t=22212. That would be a great, but based on the way these thumbnail databases are currently set up I think it would be a substantial amount of effort for Don. Both the dat2 file and dbits files would have to be modified for both the existing moved from folder and the new moved to folder.
I'm getting some errors in the script that I did not get back a month or two ago and with syntax checking on or off (I've kept syntax checking on all the time for the last couple of years). So I'll be looking at it to see what happened in scripting to cause them and hopefully correct them.