CFCOMPILE - Precompiling ColdFusion pages & Sourceless distribution

我的梦境 提交于 2019-12-01 18:08:55

问题


I see that pre-compiling pages to java classes will increase performance, while using the -deploy command will encode the pages to java bytecode, thus hiding the source code.

Questions:

Can both of the above be done? Pre-compiling the application, then encoding them?

Is updating sourceless pages & cfc's as simple as encoding the newly updated files locally, then overwrite the older ones on the server?

Thank you for your contributions.


回答1:


It's worth noting that byte code won't 'secure' your code if someone gets onto your server. There is nothing to stop someone from decompiling your code using tools like this.

There is offical Adobe info here on sourceless distribution but I haven't tried it. Remember, the compile hit if only on the first request (provided you have your CF admin setting correct) so the boost isn't for every request.

I'd also prefer to 'secure' my source code in other ways, i.e. making sure the server is secure.



来源:https://stackoverflow.com/questions/4741197/cfcompile-precompiling-coldfusion-pages-sourceless-distribution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!