Setting to Never Cache Certain Folders

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, helmut, xnview

User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Setting to Never Cache Certain Folders

Post by JohnFredC »

I would like to automatically exclude certain folders (and certain drives) from the XnView thumbnail cache.

Please consider implementing a "black list" functionality for folders for which XnView should never cache the thumbs...
John
User avatar
Olivier_G
XnThusiast
Posts: 1423
Joined: Thu Dec 23, 2004 7:17 pm
Location: Paris, France

Post by Olivier_G »

Good idea. :D

Olivier
User avatar
xnview
Author of XnView
Posts: 43613
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Setting to Never Cache Certain Folders

Post by xnview »

JohnFredC wrote:I would like to automatically exclude certain folders (and certain drives) from the XnView thumbnail cache.

Please consider implementing a "black list" functionality for folders for which XnView should never cache the thumbs...
The folder cache must be rewritten in a future release...
Pierre.
User avatar
wOxxOm
Posts: 26
Joined: Sun Mar 11, 2007 1:29 pm

Post by wOxxOm »

Any progress on this extraordinary useful feature?
ckit
XnThusiast
Posts: 2564
Joined: Tue Feb 17, 2004 1:11 am
Location: Cabarlah, Australia

Re: Setting to Never Cache Certain Folders

Post by ckit »

JohnFredC wrote:I would like to automatically exclude certain folders (and certain drives) from the XnView thumbnail cache.

Please consider implementing a "black list" functionality for folders for which XnView should never cache the thumbs...
You have my FULL support on this one!
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz
Windows 11 Pro x64 23H2, PowerToys and Wintoys
User avatar
JohnFredC
XnThusiast
Posts: 2010
Joined: Wed Mar 17, 2004 8:33 pm
Location: Sarasota Florida

Post by JohnFredC »

Other useful options have occurred to me in the years since my original suggestion:

1. Option: Do not cache thumbs for folders with fewer than n images
2. Option: Do not cache thumbs of images with filesize < n bytes
3. Option: Do not cache thumbs of images with dimensions < a certain size (such as 320x200, par example)

A generic dialog (a la TC) for named filter definition would simplify this. Then one could specific explicitly which folders to cache or black-list using a named filter definition to exclude matching folders or files.

Although this schema might seem over-kill to most users, my XnView thumbs cache is already 0.5Gb, so additional caching rules would help tame the beast.
John
User avatar
wOxxOm
Posts: 26
Joined: Sun Mar 11, 2007 1:29 pm

Post by wOxxOm »

JohnFredC, excellent conditions set. #2 & #3 often occur as very useful to me
User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

New Cache function: Exclude all excepted...

Post by oops66 »

Or probably easier to do, a new cache function: "Exclude all excepted these folders & sub-folders..." ?
http://newsgroup.xnview.com/viewtopic.php?p=69116#69116
XnViewMP Linux X64 - Debian - X64
bugmenot
Posts: 69
Joined: Sun Sep 16, 2007 10:29 pm

Post by bugmenot »

I agree: a white list or black list will both work fine, whichever is easiest to program. Also even if the cache is turned off, I think you should read from it for thumbnails instead of generating them
pic_viewer
Posts: 251
Joined: Sat Nov 17, 2007 7:53 am
Location: Germany

Post by pic_viewer »

User avatar
oops66
XnThusiast
Posts: 2005
Joined: Tue Jul 17, 2007 1:17 am
Location: France

Post by oops66 »

Not only a black & white list but a composite list will be useful:

The easier way is to have a black and a white list for the cache, but a composite list will be better.
A- a White list do only that: Include these folders and subfolders
B- a black list do only that: Exclude these folders and subfolders

C- a composite list is useful in this case: "Exclude all excepted these folders & sub-folders..."

See here too:
http://newsgroup.xnview.com/viewtopic.php?p=66489#66489
XnViewMP Linux X64 - Debian - X64