Page 1 of 1

Thumbnailing Cache Path and Resolve cache path...

Posted: 28 Aug 2022 17:03
by klownboy
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.

Re: Thumbnailing Cache Path and Resolve cache path...

Posted: 29 Aug 2022 09:05
by admin
I agree with both statements.

The new INI format has the Recursive key to show you whether it's a deep cache.

Re: Thumbnailing Cache Path and Resolve cache path...

Posted: 29 Aug 2022 12:22
by klownboy
Thanks Don for the replies. So does that mean if I do a search or branch view theRecursive 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.

Re: Thumbnailing Cache Path and Resolve cache path...

Posted: 29 Aug 2022 12:33
by admin
Yes, Recursive=1 when you had that * in the previous version.

Re: Thumbnailing Cache Path and Resolve cache path...

Posted: 29 Aug 2022 12:41
by klownboy
admin wrote: ↑29 Aug 2022 12:33 Yes, Recursive=1 when you had that * in the previous version.
:tup: Thanks again.