ProcessWire runtime page cache: safe boundary for $pages->uncache() when other loaded pages reference the target
Runtime page cache in batch scripts In a long-running ProcessWire CLI script (an import that iterates thousands of pages via $pages->get() and $pages->find()), memory grows steadily because every loaded Page object is retained in the runtime page cache for the lifetime of the request. The documented mitigation is $pages->uncache($page) or periodic $