summaryrefslogtreecommitdiff
path: root/docs/docbook/smbdotconf/printing/lpqcachetime.xml
blob: 6f351fdaf9adeef58b30c2cde2cc8bdf1fbc0080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<samba:parameter xmlns:samba="http://samba.org/common">
		<term><anchor id="LPQCACHETIME"/>lpq cache time (G)</term>
		<listitem><para>This controls how long lpq info will be cached 
		for to prevent the <command moreinfo="none">lpq</command> command being called too 
		often. A separate cache is kept for each variation of the <command moreinfo="none">
		lpq</command> command used by the system, so if you use different 
		<command moreinfo="none">lpq</command> commands for different users then they won't
		share cache information.</para>

		<para>The cache files are stored in <filename moreinfo="none">/tmp/lpq.xxxx</filename> 
		where xxxx is a hash of the <command moreinfo="none">lpq</command> command in use.</para>

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

		<para>A value of 0 will disable caching completely.</para>

		<para>See also the <link linkend="PRINTING"><parameter moreinfo="none">printing
		</parameter></link> parameter.</para>

		<para>Default: <command moreinfo="none">lpq cache time = 10</command></para>
		<para>Example: <command moreinfo="none">lpq cache time = 30</command></para>
		</listitem>
		</samba:parameter>