Retrieve FTP files directly to memory

The CFFTP tag includes extensive support for FTP operations. However, all remote file access requires interaction with the local drive. For example, if you want to retrieve and parse an XML file, you have to get the file and save to disk, then use cffile to load it into memory, and finally parse it. All this extra disk access takes unnecessary time.

Since CFMX is now Java based, we can take advantage of the Java network library to perform this same action without disk access.

Continue reading

New Blog Feature: Subscribe to Comments

We’ve added a new feature to our blog, Subscribe to Comments. We’ve seen this in other blogs and love the feature, but had only seen a PHP implementation. We developed a pure ColdFusion implementation that should work with any blog.

Please try it out and let us know what you think. We’ll be posting the code in a few weeks.

How is a CFC called from a template that itself is never called?

I ran into an interesting problem while developing two custom debug templates. The CFMX debugger provides information on all the templates executed in a request, including the execution time for the template and the “parent” or caller for each template.

Interestingly, there is one situation with ColdFusion Components where the parent template itself will never appear in the template list, seemingly to indicate it’s called from a template that is not executed within the request.

Continue reading