Code: Select all
guest@porteus:~$ ls -on /var/cache/cups/*.dat
-rw------- 1 4 27272740 Jun 21 2021 /var/cache/cups/ppds.dat
guest@porteus:~$
Code: Select all
guest@porteus:~$ ls -on /var/cache/cups/*.dat
-rw------- 1 4 27272740 Jun 21 2021 /var/cache/cups/ppds.dat
guest@porteus:~$
I agree and what I usually recommend to others.
It was created in June 21 2021, hardly temporary. And by what? And why. It's 27MB! Print jobs are saved as job.cache and job.cache.0, the latter a text file, and are a whole lot smaller.
Code: Select all
# Job cache file for CUPS v2.4.2
# Written by cupsd
NextJobId 40
<Job 2>
State 9
Created 1625064689
Completed 1625064726
Priority 50
Username guest
Name PDF.js viewer
Destination HP-Officejet-Pro-8600
DestType 0
KOctets 800
NumFiles 1
File 1 application/pdf 0
</Job>
<Job 3>
State 9
Created 1625168257
Completed 1625168292
Priority 50
Username guest
Name FetchStatementandNotices.pdf
Destination HP-Officejet-Pro-8600
DestType 0
KOctets 105
NumFiles 1
File 1 application/pdf 0
</Job>
:
:
and many more.
Code: Select all
guest@porteus:/var/cache/cups$ ls -lght
total 27M
-rw-r----- 1 lp 8.1K Dec 30 2022 job.cache
-rw-r----- 1 lp 8.1K Dec 28 2022 job.cache.O
-rw-r--r-- 1 root 2.8K Aug 13 2022 HP-Officejet-Pro-8600.data
-rw-r--r-- 1 root 245 Aug 13 2022 HP-Officejet-Pro-8600.strings
drwxrwxr-x 2 lp 3 May 26 2022 rss/
-rw------- 1 lp 27M Jun 21 2021 ppds.dat
guest@porteus:/var/cache/cups$
PostScript Printer Description
PostScript Printer Description ("PPD") files describe the capabilities of each printer and are used by CUPS to support printer-specific features and intelligent filtering.
Well there are certainly many .ppd files in /usr/share/cups/model/. Most dated July 12 2022 with 2 dated 2013!Where is the PPD file in CUPS?
CUPS clients usually read the current PPD file from the server every time a new print job is created. It is located in /usr/share/ppd/ or /usr/share/cups/model/ .
Best ask someone who knows the inner workings of CUPS better than me.
andhttps://github.com/apple/cups/issues/3921 wrote: When requesting a list of the available PPDs ("lpinfo -m") cups-driverd at first reads the file /var/cache/cups/ppds.dat with PPD entries which it had already loaded on an earlier run.
Code: Select all
su
toor
/etc/rc.d/rc.cups stop
# Don't worry, the directory contents will be regenerated
rm -f /var/cache/cups/ppds.dat
/etc/rc.d/rc.cups start
Code: Select all
ls -on /var/cache/cups/
Code: Select all
su
toor
lpinfo -m