Interesting ColdFusion Application Quirk

At MICA we have a ColdFusion custom tag that we use to brand our older legacy applications.  I recently needed to implement caching with cfhttp requests which is not delivered functionality within our custom tag, so I decided to store this cache in the application variable scope.  Upon doing this, I discovered that custom tags inherit the application of its invoking page.  Likewise, if you change the current application in the custom tag, the new application is passed back.

I was not exactly sure how the scoping would work out, but I found this mildly interesting.

April 14, 2009 • Tags: , • Posted in: Technology

Leave a Reply