ScopeCache on RIAForge

Last night I released ScopeCache on RIAForge. This isn’t new code. It’s the caching custom tag I’ve had for a few years now. Charlie Arehart mentioned to me that it wasn’t possible to find the code anymore (outside of BlogCFC), so now I have a place for folks to find it.

I also did some small updates to it, including giving it the ability to cache in the request scope.

For folks who don’t know what this tag is, it’s a basic way to quickly add caching to a page. So imagine the following slow code:

<cfset sleep(9000)> Done sleeping.

I can cache the result of this code (the output) by adding the custom tag:

<cf_scopecache scope="application" name="mycodeisntslow" timeout="3600"> <cfset sleep(9000)> Done sleeping. </cf_scopecache>

Pretty simple, right? There are more options of course. See the documentation in the tag itself.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Comments