Clears all caches or the specified cache

systemCacheClear([cacheName]) → returns void

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

systemCacheClear 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

Examples sample code invoking the systemCacheClear function

Clear all caches.


Clear the template cache.


Fork me on GitHub