NZUB - NNTP newsgroup scan/download - Caching Info

Screen Shot of Cache Info Dialog

The Cache Info Dialog is used to activate local caching of newsgroup headers. It allows specification of the directory where the cached headers are to placed as well as how many headers will be kept. There is also a button to clear out the cache. This feature was added in release 1.14 of Zub.

Cache Info Dialog Elements

Caching Enabled.

This check box specifies whether caching is enabled or disabled. If disabled, Zub behaves as it did prior to the addition of caching. The required newsgroup headers are read each time from the server.

Cache Dir

This field contains the name of a directory into which the cache files will be placed. One file is created for each newsgroup/server combination. The cache file names are of the form ~~~ZUB_CACHE_<server>_<group>.
For example: ~~~ZUB_CACHE_usenetserver.com_alt.binaries.sounds.mp3.1950s
If the Caching Enabled check box is set, this field is required. The directory specified must already exist.

Browse for Cache Dir Button

This button opens a folder dialog to allow choosing of the directory to contain the cache files. The directory must already exist.

OK Button

This button closes the dialog, returning to the main dialog. The updated data is saved at this time in the ZUB.ini file.

Cancel Button

This button closes the dialog, returning to the main dialog. Any changes made are discarded. The [X] button"" in the upper right corner has the same effect.

Delete Cache Button

This button causes all the cache files in the current cache directory to be deleted. These are all the files starting with ~~~ZUB_CACHE_
If you switch directories, the cache files will not be deleted from the old cache directory.

Cache Options

The Radio buttons in this group control how many headers are cached and how long caches will be kept around.

Total Cache Space of 'n' Meg

If this radio button is checked, at the end of each run the size of all the cache files will be computed, converted to megabytes, and compared to the specified value. If there are multiple cache files (multiple groups), the one least recently used will be deleted and the space recomputed. The process is repeated until the space falls below 'n' megabytes. If there is only one file left, it is loaded and the oldest entries trimmed off till its size falls below the limit.

Max Valid Headers Per Group

When cached headers are saved as part of a run, only the newest 'n' headers are saved where 'n' is the value specified with this option.

Unlimited

If this radio button is checked, cached headers are eliminated when they expire off the newsgroup server.

Delete Cache for Groups Not Accessed in 'n' Days.

This check is made before the Total Cache Space Check. If a newsgroup has not been accessed in a certain number of days, it is deleted. This prevents caches for groups you are no longer interested in or caches for servers you are no longer using from just hanging around.