Problem with clearing page pool cache for all contexts

I have a Lucee server with 25 public sites that share a single codebase. “Inspect Templates (CFM/CFC)” is set to Never.

I sometimes need to push an update to the code, but cannot clear the page pool cache unless I restart Lucee or the server. I created a page on the server to clear the cache, but nothing is working.

This is what I’ve tried so far:
inspectTemplates();
pagePoolClear();
systemCacheClear(‘all’);

Ubuntu 24.04.4
Lucee 6.2.5.48
Apache Tomcat 11.0.18
Java 21.0.10 (Eclipse Adoptium) 64bit

Any help is much appreciated!

@felix , Lucee manages its compiled template cache (page pool) at the application level, not globally. Each application has its own isolated cache, even if multiple sites share the same codebase on the same server.

Because of this, functions like InspectTemplates() and PagePoolClear() only operate within the current application (along with any Server/Web context mappings). They do not impact other applications running on the same Lucee instance.

So, clearing or invalidating the page pool for all sites from a single page isn’t possible. If you need consistent cache refresh across multiple applications, you’ll have to trigger the invalidation within each application separately, or perform a full Lucee/server restart to clear everything at once.