I am using Railo and EHCache to cache an array of 300,000 items from a database that need to be updated every 30 minutes.  So, naturally, I use the CacheGet() and CachePut() functions. Here’s my code, really simple: <cfset cachedURLList = cacheGet(“URLList”)> Every few minutes I would get an error report from our server….”variable [CACHEDURLLIST] doesn’t exist”.  I realized that CacheGet() must return the object by reference.  I am only caching URLList for 5 minutes.  I must have been making a request at the 4:30 minute mark, the requests each last 90…

Read More

So I went to my first developer conference last week, the Adobe ColdFusion Summit 2013 hosted by Adobe at the Mandalay Bay Hotel and Casino in Las Vegas.  It was my first time meeting a lot of people in the community. The keynotes were great, they really got me excited for ColdFusion Splendor, which should come out sometime next year.  I’m skeptical of the new <cfclient> tag, but I’ll give wait until CF11 comes out and I have a chance to use it before I completely write it off. I…

Read More

Last week I was working on a web crawler to crawl 250,000 URLs each night.  We had 5 client crawlers running and connecting to a master MSSQL 2013 database.  FusionGronker in ##coldfusion on freenode recommended that I try FusionReactor (a tool that allows you to monitor EVERYTHING that’s going on in your Java (ColdFusion) servers in real time. After many hours of debugging, I noticed every hour or so, a thread was getting stuck in a Native Method call.  There was no way to kill the thread, since it was…

Read More

We recently had some issues with one of our X-Cart sites.  The site is behind a Cloud Load Balancer with SSL termination at Rackspace and X-Cart wouldn’t play nicely, it kept causing an infinite redirect loop because it wouldn’t detect that the request was already secure. The solution was to have X-Cart properly detect if the request was coming in via HTTPS.  The way the load balancer works is that it accepts traffic on both port 80 and 443.  It forwards all traffic to the server on port 80 (even traffic…

Read More