Whatever message this page gives is out now! Go check it out!

CFC caching

Last update:
May 18, 2026
Tool CFCs can be expensive to instantiate repeatedly. The cfcCaching flag lets you cache them:
<cfscript>
cfcCaching = true;
</cfscript>
With caching:
  • The first time a tool is used, its CFC is instantiated and cached.
  • Subsequent calls reuse that instance.
This is almost always what you want in production, unless your CFCs have side effects that require fresh instances.

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page