BlogCFC and ColdFusion 8

So I thought I'd write a quick note to talk about my plans for BlogCFC and ColdFusion 8. First off - there is a bug that prevents BlogCFC from running under CF8. This was due to me writing some code that worked right but should not have under CF7. I've fixed this bug and have checked into into the Subversion repository. The file in question is /org/camden/render/render.cfc. Grab it if you plan on running BlogCFC under ColdFusion 8.

As for how I plan on using CF8 - right now I don't have many plans. Since my customer base is quite large and covers folks on CF6 and CF7, I don't want to do too much for folks who can't even use it. I can say the first thing I'll do is update Ping support to use cfthread if BlogCFC is running under ColdFusion 8. About the slowest thing in BlogCFC is the ping action. (Well, it is slow if you do a lot of pings.) By using cfthread I can speed up the process quite a bit.

Later this week I'll be making that change - and when I do, I'll blog the code so folks can see the before and after.

Archived Comments

Comment 1 by Dan Russell posted on 5/31/2007 at 6:08 PM

Our shop was afraid that CF8 would break CF7 code.... say it ain't so! (or at least say it's rare!)

Comment 2 by Raymond Camden posted on 5/31/2007 at 6:11 PM

Dan - I don't know if I can talk about the exact issue. To be clear though, I _accidentally_ use undocumented code that worked. So the fault is all mine. This is not - technically - a backwards compat issue.

Comment 3 by Dan Russell posted on 5/31/2007 at 6:31 PM

Understood.

Comment 4 by Justice posted on 5/31/2007 at 7:15 PM

Ray,

You mention that pings are slow, have you ever checked out socket.cfc? I have a program that monitors our remote terminals and saves ping response in a database, and this works great and fast for me. It calls java functions to allow stuff like pings, I setup an integration to PC*Miler using Telnet with the socket.cfc that scales quite nicely. Let me know if you want any more info about it. =)

Comment 5 by Ben Forta posted on 5/31/2007 at 7:36 PM

Ray, I've been running BlogCFC on CF8 since, well, sine early alpha days, 1/2 year at least. And no problems at all. ;-)

--- Ben

Comment 6 by Raymond Camden posted on 5/31/2007 at 7:42 PM

Yeah, but what version? This issue is in render.cfc, which I bet you don't have.

Comment 7 by Raymond Camden posted on 5/31/2007 at 7:46 PM

Justice - no need now with cfthread. ;)

Comment 8 by Justice posted on 5/31/2007 at 7:50 PM

Ray,

Not to disagree with ya, but if the ping runs slow, rather than chew resources on the server back end I would rather use an optimized method than a work-around. =)

Chris

Comment 9 by Ben Forta posted on 5/31/2007 at 7:50 PM

Ray, am using 5.1.001, I guess it pays to be on older versions. ;-)

--- Ben

Comment 10 by Raymond Camden posted on 5/31/2007 at 7:55 PM

Dude, that is SUCH the wrong thing to say in a CF8 thread. I'm going to forward this to over to Tim. ;)

Comment 11 by Ed posted on 5/31/2007 at 9:14 PM

yes, the problem appeared with the latest release, but it was a few seconds find and fix issue. :) not sure if the fix i did is the same Ray did, but it work great now.

Comment 12 by Kevin Benore posted on 5/31/2007 at 10:03 PM

On Ray's comment to Ben:
Now that is funny!

Comment 13 by Dan G. Switzer, II posted on 5/31/2007 at 11:09 PM

@Justice:

This is a guess, but I don't think Ray's talking about a network "ping", but instead some aggregiate RSS feeds allow you to hit a URL to tell them to go update your RSS feed. You basically just do a CFHTTP call to a special URL.

I think this is what Ray was talking about when he said "ping." Some of these RSS aggregiaters are pretty slow in returning results, so multi-threading this would be a nice addition.

PS - I don't use Raymond's code--although sometime I really wish I would have from the start. :)

Comment 14 by Raymond Camden posted on 5/31/2007 at 11:41 PM

Dan is right. It is a HTTP hit only.

Comment 15 by Justice posted on 6/1/2007 at 3:10 AM

Eep, sorry Ray. My network-admin brain thought 'ping' as in command line =)