Don, for scripting purposes and my own info, if a user puts in an actual folder path entry (e.g., "D:\XYthumbs" without any "?") for "Cache path" in Configuration > Thumbnails (the "CacheDir" value in XYplorer.ini) and at the same time also has "Resolve cache path from current folder" checked, the "resolve cache path" setting would be ignored from what can see via testing, and the actual cache path would be the entry made for "cache path" in in all cases and all drives. Do you agree with that statement?
Also, in every case no matter what the user has for "Resolve path..." or "Cache path" entry, the actual cache path will be the result of "e <xythumbs>;" provided your "current" folder is the image folder thumbnail folder in question. Obviously, if you are not currently in the image folder, the <xythumbs> return may not the correct cache folder path when you have a "?" in the cache path entry or have no entry in the cache path. Does that also sound correct?
Edit: Another question concerning thumbnail cache files for "search" results: The previous "dat2" files had an additional "*" between the folder and the thumbnail size that indicated the cache was for search results (if cached); the new "ini" files don't appear to have any distinction of "search" results in their [General] section of the ini files. The log file however, XYthunbs.txt does still include a * between the folder and thumbnail size.
In previous scripts, I had to determine if the cache was for a search or branch, and I was able to do that by checking the "dat2" file for the 2 asterisks, "**". Now I'm not sure I can do it unless I go to the entry in the XYthumb.txt log, but that doesn't seem right. It's probably not too late because this wouldn't affect only searches or branch views, should the ini file have some distinction if it's for a search, like maybe "search:" before the folder as is done with paper folders, "paper:D:\Pictures\" or possibly an asterisk after the folder? Thanks.
Thumbnailing Cache Path and Resolve cache path...
-
klownboy
- Posts: 4481
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
-
admin
- Site Admin
- Posts: 67337
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Thumbnailing Cache Path and Resolve cache path...
I agree with both statements.
The new INI format has the
The new INI format has the
Recursive key to show you whether it's a deep cache.FAQ | XY News RSS | XY X
-
klownboy
- Posts: 4481
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Thumbnailing Cache Path and Resolve cache path...
Thanks Don for the replies. So does that mean if I do a search or branch view the
Recursive key will be set to "1" because as you say, it's a deep cache? It appears in my testing that I get Recursive set to "1" for a search only involving a single folder (current only) non-recursive ("Include subfolders" in the Find tab is not checked). And that's fine, I just wanted to understand how I can determine if a particular cache is for a search or branch by looking at the ini file.-
admin
- Site Admin
- Posts: 67337
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Thumbnailing Cache Path and Resolve cache path...
Yes,
Recursive=1 when you had that * in the previous version.FAQ | XY News RSS | XY X
-
klownboy
- Posts: 4481
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
XYplorer Beta Club