DWWW-CACHE(8) | Debian | DWWW-CACHE(8) |
dwww-cache - manage the dwww cache of converted documents
dwww-cache --lookup type location
dwww-cache --store type location
dwww-cache --list type location
dwww-cache --list-all
dwww-cache --clean
dwww-cache manages the cache of converted documents; it is part of dwww(7). An option (the first argument) specifies the operation. Some operations operate on the whole cache, and need no other arguments. Others need the second and third argument to specify the type and pathname of the original document. (See dwww-convert(8) for more information about the arguments.)
The operations are:
dwww-cache maintains a database with information of the cached documents. The documents themselves are stored in separate files in the cache directory. When old documents are removed from the cache by a suitable crontab entry, they will still exist in the database. The --clean operation removes all entries from the database where either the original or the converted file is missing or where the converted file is outdated.
To stop the cache from growing too large, there should be an entry for dwww-refresh-cache(8) in system crontab to remove cached files that have not been accessed for a while. The dwww-refresh-cache(8) program internally uses commands similar to
The idea is to first delete the old cached files and then clean up the database. The policy of cleaning the cache has been kept outside of dwww-cache to keep the program simple, and to allow maximum flexibility. The default dwww installation creates a /etc/cron.daily/dwww, which automatically cleans the cache each day.
Lars Wirzenius <liw@iki.fi>. Modified by Robert Luberda
<robert@debian.org>.
See dwww(7) for copyrights and stuff.
February 7th, 2016 | dwww 1.13.0 |