PagePoolClear()

Purges the cfml code (cfm, cfcs) from the cache of compiled bytecode (aka the Page Pool)

This function no longer recommended.

Please use InspectTemplates() instead, which only marks this cache as being dirty, thus triggering a check on use, to see if the underlying cfml file has changed, which is extremely efficient both in terms of memory usage and CPU.

Status:

deprecated

PagePoolClear( force=boolean );

Returns: Boolean

Argument Description
force
boolean, optional

When set to false (default in Lucee 6.2.1+), this function behaves like inspectTemplates(), which only reloads changed pages.

When set to true, it reverts to the original behavior of forcibly clearing all pages from memory pools, causing unnecessary reloading of unchanged pages.

Introduced: 6.2.1.118

Usage Notes

This only clears the cache for the current Application, plus all Server and Web Context mappings.

Other per Application mappings are not cleared

Examples

  result = PagePoolClear();
  echo(result); // page pool has been cleared

See also