Inspect Templates setting does not save

Hi, in Performance/Caching - Settings --> Inspect Templates, whatever option I pick, as soon as I press the update button the system puts it back to the default “Auto (Optimized Performance)” and throws away my change.

Settings in other sections save fine, it is only this one that will not stick.

I have tried with Lucee 7.0.5.41 / Java 21 and Lucee 7.1.0.203 / Java 25
I have also tried emptying the felix-cache folder

What can I check to find out what is going on?

1 Like

I also tried saving LUCEE_INSPECT_TEMPLATE="always" in the .env file but it still doesn’t work. Any ideas?

Based on the versions you’ve tried, sounds like you’re already aware of LDEV-5407 which appears to be in QA status.

Search for inspectTemplate settings in .CFConfig.json?

Or add -Dlucee.inspect.template='always' to your JAVA_OPTS?

BTW this is in dev?

(Just checking because “always” is generally not desired in production.)

.CFConfig.json was already like this but it doesn’t work:

{
    "debuggingEnabled":true,
    "debuggingReportExecutionTimes":false,
    "disableInternalCFJavaComponents":false,
    "inspectTemplate":"always",
    "requestTimeout":"0,0,0,90",
    "robustExceptionEnabled":true
}

Or add -Dlucee.inspect.template=‘always’ to your JAVA_OPTS?

I tried with:
server set jvm.args=" -Dlucee.inspect.template='always'" and it still shows the value as “auto” :sob:

BTW this is in dev?

yes and that’s exactly why I wanted to turn that option off :slight_smile: