Clears all caches or the specified cache

systemCacheClear([cacheName]) → returns void

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

cacheName string

Name of the cache you want to clear. If not specified it will clear all caches.
Some cachenames are aliases:
page = template
cfc, class = component
ct = customtag
object = query
  • all
  • template
  • page
  • component
  • cfc
  • class
  • customtag
  • ct
  • query
  • object
  • tag
  • function

Sample code invoking the systemCacheClear function

Clear all caches.


Clear the template cache.


Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub