OpenPrinting / cups

OpenPrinting CUPS Sources
https://openprinting.github.io/cups
Apache License 2.0
1.07k stars 192 forks source link

Invalidate cache on DefaultLanguage/DefaultPaperSize/ReadyPaperSizes change #371

Closed klausenbusk closed 2 years ago

klausenbusk commented 2 years ago

Hi

I had some trouble getting my iOS device to show the correct "media type" (A4 instead of US letter) and tweaking DefaultLanguage, DefaultPaperSize or ReadyPaperSizes didn't affect the reported "media type" on iOS. After a lot of trial and error I figured the "media type" is apparently cached in /var/cache/cups, and after emptying that directory the correct "media type" was reported.

This was very confusing, so perhaps changing any of the mentioned values should invalidate the cache? or at least this behavior should be documented (or maybe it already is and I just missed that?).

The printing just works after fixing the "media type", so good work on the AirPrint and Mopria support! :) (https://github.com/OpenPrinting/cups/pull/126)

michaelrsweet commented 2 years ago

I guess we can compare the cache date to the cupsd.conf date. Unfortunately, we can't be more specific that that...

michaelrsweet commented 2 years ago

[master 41fbc18c0] Invalidate PPD cache if cupsd.conf is newer (Issue #371)