I ran across this statement the other day in Help, in View menu -> Caches (Submenu)
Refresh Thumbnails. The statement: "When a list no items with thumbnails but a pair of thumbnail cache files for it still exists (for images that are not here anymore) calling "Refresh Thumbnails" will permanently delete those thumbnail cache files".
I wasn't aware of this, so I ran some tests. It's relatively easy to check. Load a temp folder with some JPGs. Change the view to a thumbnail view. Make sure the cache files are generated. Now go ahead and delete the files. Check to see that the thumbnail files still exist. Return to the same thumbnail view (if necessary). Now run "Refresh thumbnails" from the menu. The cache files (ini and dbits) remain, and they are present even after a restart. Deleting all the images (all the files) or the entire folder does not remove the cache files.
Not a huge deal Don, I wasn't aware the statement existed. Maybe the transition to "ini" files affected this or maybe it never worked? In any case, it doesn't work now, and as mentioned, deleting entire folders does not remove the cache files.
Maybe the statement needs to be deleted, but it actually could be a good idea especially in scripting, deleting all the image files and running CID #501 to clean out the cache files - if it worked. Thanks.
Refresh thumbs delete cache files if no image files exist
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
-
klownboy
- Posts: 4468
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
-
admin
- Site Admin
- Posts: 66620
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Refresh thumbs delete cache files if no image files exist
That was added not sooo long ago (v22.70.0022 - 2022-01-20 18:51, see also viewtopic.php?f=2&t=24090) and sorry for the bad grammar. I'll look into it...
... well, unfortunately I cannot confirm it. Works well, the cache files are removed on "Refresh Thumbnails".
... well, unfortunately I cannot confirm it. Works well, the cache files are removed on "Refresh Thumbnails".
FAQ | XY News RSS | XY X
-
klownboy
- Posts: 4468
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Refresh thumbs delete cache files if no image files exist
Hey Don, you're right under one circumstance. If the folder has one or more non-cacheable files remaining in the folder after you delete the cacheable images, the 2 associated cache files are deleted. But, if the folder contains only cacheable images, such that all files are deleted in that folder, it does not work. It would be nice if it did.
-
admin
- Site Admin
- Posts: 66620
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Refresh thumbs delete cache files if no image files exist
You mean on "Refresh Thumbnails" when the folder is completely empty? Works as well. 
FAQ | XY News RSS | XY X
-
klownboy
- Posts: 4468
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Refresh thumbs delete cache files if no image files exist
Yes, I was talking about the same situation, using "Refresh Thumbnails" after deleting the cacheable files. But I appear to be all wet, in that in re-testing after deleting all files cacheable and non-cacheable, the 2 thumbnail cache files are being deleted. I don't know why it wasn't working for me earlier today or last week. I may make a short script to run some additional tests to make sure it's consistent that way as well. Thanks, and sorry Don. 
-
admin
- Site Admin
- Posts: 66620
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Refresh thumbs delete cache files if no image files exist
I'm sure you experienced that. You just have to find all the right conditions. Looking at the code I cannot see a way how this can't work though.
FAQ | XY News RSS | XY X
XYplorer Beta Club