Page 1 of 1

List autorefreshing in thumbnails view, under special circumstances

Posted: 16 Jun 2024 15:36
by Borut
Recently I have been (re)organizing thousands of photos (2+ years). While doing this, I specifically decided to switch OFF "Cache thumbnails on disk". In the list I have images in thumbnails view. In tree I am renaming folder names, one by one, according to the respective images content which I see in the list. Autorefresh is on. While doing this I noticed that - after folder being renamed in tree - the thumbnails apparently disappear, instead of being regenerated automagically. An explicit Refresh, or Refresh List, regenerates the thumbnails. Maybe I here had a too high expectation. On the other hand, maybe it is a kind of a simple omission that would be easy to change.

Re: List autorefreshing in thumbnails view, under special circumstances

Posted: 16 Jun 2024 17:47
by klownboy
Hi Borut, have you looked at SC ThumbscacheRename
thumbscacherename()
Updates a renamed or moved path in the thumbnails cache.
I used SC thumbscacherename as a maintenance menu item in the Thumbnail Maintenance script here viewtopic.php?p=204361#p204361, but it's been an awful long time. Who knows if it works.

I also thought at one time Don mentioned that simple renaming was automatic as far as XYplorer recognizing the folder name change in the thumbnail cache, but maybe there's an issue since taking the dat2 files to ini files.

EDIT: I did confirm the following:
- generated new thumbs for a folder full of jpgs (and confirmed in the thumbnail cache files)
- renamed that folder in the tree
- the thumbnails were regenerated in the list panel after the rename.
- though since the cache file name is in part generated from the folder name and thumbnail size, that would be expected. New cache file combination of dbits and ini files is generated.

Re: List autorefreshing in thumbnails view, under special circumstances

Posted: 16 Jun 2024 18:43
by admin
klownboy wrote: 16 Jun 2024 17:47 - generated new thumbs for a folder full of jpgs (and confirmed in the thumbnail cache files)
- renamed that folder in the tree
- the thumbnails were regenerated in the list panel after the rename.
Can't confirm. Did you rename the current folder while the thumbnails were displayed? This will not trigger a rebuild.

Re: List autorefreshing in thumbnails view, under special circumstances

Posted: 16 Jun 2024 20:35
by klownboy
admin wrote: 16 Jun 2024 18:43 Can't confirm. Did you rename the current folder while the thumbnails were displayed? This will not trigger a rebuild.
I did it again to refresh my memory. After renaming the folder in the tree, I only did a "normal" refresh (F5), and the thumbnails were rebuilt. Now I have 3 sets of thumbnail cache files (ini and dbits) in my thumbnail cache folder for each of the twice renamed folder. Agent downloads, Agent DLs, and Agent ME.

Obviously, based on the way it works as far as the hash filename, XY would have to generate a new cache file combo files ini and dbits. So, I suppose that's alright and to be expected unless you were to take XYplorer a step further and auto deleted the "old" renamed cache file combo. Or, the contents of the original dbits file is automatically used for a newly renamed dbits file to save rebuilding the cache. But of course, the ini also has to be updated to reflect the folder name change.

Re: List autorefreshing in thumbnails view, under special circumstances

Posted: 17 Jun 2024 01:50
by jupe
Unsure why the mention of thumbcacherename and dbits/ini, the OP was talking about the cache being turned off.

Re: List autorefreshing in thumbnails view, under special circumstances

Posted: 17 Jun 2024 09:22
by admin
jupe wrote: 17 Jun 2024 01:50 Unsure why the mention of thumbcacherename and dbits/ini, the OP was talking about the cache being turned off.
Oh, I somehow managed to overlook that as well. Yes, I can confirm that the thumbs disappear! Gonna fix... :cup:

Re: List autorefreshing in thumbnails view, under special circumstances

Posted: 17 Jun 2024 12:05
by klownboy
jupe wrote: 17 Jun 2024 01:50 Unsure why the mention of thumbcacherename and dbits/ini, the OP was talking about the cache being turned off.
Yes, Sorry I missed the most obvious and up front condition on Borut's post. That was a wasted answer... :roll:

Just curious Don, how do you manage those thumbnails when the cache is turned off? Are they in a temp condition in memory or written to disk temporarily and gone after closing XYplorer?

Re: List autorefreshing in thumbnails view, under special circumstances

Posted: 17 Jun 2024 12:13
by admin
klownboy wrote: 17 Jun 2024 12:05
jupe wrote: 17 Jun 2024 01:50 Unsure why the mention of thumbcacherename and dbits/ini, the OP was talking about the cache being turned off.
Yes, Sorry I missed the most obvious and up front condition on Borut's post. That was a wasted answer... :roll:

Just curious Don, how do you manage those thumbnails when the cache is turned off? Are they in a temp condition in memory or written to disk temporarily and gone after closing XYplorer?
It's streamed to disk to handle industrial-sized amounts of data without blowing up RAM. I just fixed a bug concerning the "gone after closing XYplorer" part. They were not always gone, which could cause problems later. The next version should handle this better.

Re: List autorefreshing in thumbnails view, under special circumstances

Posted: 17 Jun 2024 14:06
by Borut
Don, many thanks for this fast implementation of my wish. :tup: In the newest beta - v26.10.0106 - it is working like a charm and the thumbnails survive a folder rename without even blinking at me. ;) This is really great, since hundreds of folders are to still to be checked/renamed at my place. Much better experience now! Have a nice day! :tup: