Quantcast
Channel: Lucee Dev - Latest topics
Viewing all articles
Browse latest Browse all 455

Defaulting to only looking for Application.cfc in Lucee 7

$
0
0

Just been chatting with @micstriit, he has proposed the question, could we move to only supporting Application.cfc by default?

The old default setting “mixed” would of course be available, but for 99% of our users changing this would be beneficial (faster)

Why you ask? well Lucee has to walk back down thru the parent directories looking for Application.cfc/Application.cfm/onRequestEnd.cfm files which adds file system overhead.

I.e. for so myhost/one/two/three/four/index.cfm with an Application.cfc in the root, by default, Lucee is checking the file system in 4 directories for 3 different files, now it makes sense why we want to change this? (I can already hear you all running off to tweak your server configs!)

This would only affect people running ancient CFML

Most people have never changed this setting under Settings - Request?

The change would be to default to Modern

With CFConfig.json it’s a one liner to revert to the older, slower default

{
    "listenerType": "mixed"
}

It would of course be flagged in our breaking changes documentation

Click to view the poll.

anyone against the proposal, please share your rationale below as a comment, we’re interested in hearing your opinion

11 posts - 5 participants

Read full topic


Viewing all articles
Browse latest Browse all 455

Trending Articles