add function inspectTemplates

Description

add function inspectTemplates, that can be called to force Lucee to inspect again all templates, also when inspect templates is set to false.
Before PagePoolClear was used for this, but that function has produced unnecessary load on the system, because it removes all pages from pool, even pages that have not changed.

Environment

None

Activity

Show:

Zac Spitzer 30 March 2020 at 16:51

yeah, page pool is confusing

I did update the docs for these functions to use language which is more cfml like
https://docs.lucee.org/reference/functions/inspecttemplates.html

Michael Offner 30 March 2020 at 16:47

naming comes actually from the lucee admin where you have the setting “Inspect Templates“ → always|once|never

that function forces actually this. the PagePool function did begin theit live as hidden functions, because of that the name of the underlaying classes, PagePool.

in CFML therms they are not called PagePool, it is a template cache.

 

 

Zac Spitzer 20 March 2020 at 15:58

I assume this affects cfcs too? the name is confusing as it implies as first glance it only affects cfm files?

PagePoolRefresh() or PagePoolReinspect() would be more consistent with the existing naming?

Fixed

Details

Assignee

Reporter

Priority

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Created 20 March 2020 at 14:39
Updated 31 March 2020 at 14:12
Resolved 31 March 2020 at 14:12