pdfRenderWorkerCacheMaxRetainedCommands top-level property
Maximum number of command slots retained by the main-side render cache.
Decoded pixels have a reliable byte size and are bounded separately by pdfRenderWorkerCacheBudgetBytes. Command objects do not: a dense CAD page can carry hundreds of thousands of small path/state objects while weighing zero under the decoded-pixel budget. This second LRU bound uses the same stable recursive command-slot measure as the platform-worker transcript cache. The newest record is protected even when it alone exceeds the bound, so one difficult visible page remains reusable without letting several such pages accumulate.
Implementation
int pdfRenderWorkerCacheMaxRetainedCommands =
defaultPdfRenderWorkerCacheMaxRetainedCommands;