ColdFusion 8 Caching Stored Procs bug?
April 18th, 2008
If you aren’t aware, yes you can cache the results of stored procs in ColdFusion 8 using cachedwithin. However, be aware that ColdFusion only caches the first result set so If you are returning multiple result sets you are only going to get the first result set. So if you happen to be thinking ahead while you are coding and start out by setting the cachedwithin parameter you will never see multiple result sets.
To give credit where credit is due, my co-worker, Matt Hintze discovered this yesterday when we were trying to figure out why we weren’t getting multiple result sets back from a proc that we knew returned multiple sets every time it ran.
Hopefully this will be addressed by Adobe as caching multiple result sets would be the expected behavior inside a proc.
2 Responses to “ColdFusion 8 Caching Stored Procs bug?”
Sorry, comments are closed for this article.
April 18th, 2008 at 10:52 AM
Thanks for blogging about that, I was thinking about caching our SPs, but just about every one returns multiple result sets. I presume you tried this on 8.01 which fixes various bugs, including at least one that isn’t documented?
April 18th, 2008 at 11:58 AM
Yep, not fixed in 8.01, this has been brought to Adobe’s attention so hopefully it will get fixed.