3.0.25pre1 and lpq cache time

Thomas Bork tombork at web.de
Sat Mar 3 17:59:03 GMT 2007


Hi,

the documentation for 'printcap cache time' states:

lpq cache time (G)

This controls how long lpq info will be cached for to prevent the lpq
command being called too often. A separate cache is kept for each
variation of the lpq command used by the system, so if you use different 
lpq commands for different users then they won't share cache
information.

The cache files are stored in /tmp/lpq.xxxx where xxxx is a hash of the
lpq command in use.

The default is 10 seconds, meaning that the cached results of a previous 
identical lpq command will be used if the cached data is less than 10
seconds old. A large value may be advisable if your lpq command is very
slow.

A value of 0 will disable caching completely.

Default: lpq cache time = 10

Example: lpq cache time = 30


But:

deveis # grep 'lpq cache time' /etc/smb.conf
deveis # testparm -sv 2>/dev/null | grep 'lpq cache time'
         lpq cache time = 30


The default is

'lpq cache time = 30'

and not

'lpq cache time = 10'


der tom


More information about the samba-technical mailing list