systemCacheClear

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
Values:
  • all
  • template
  • page
  • component
  • cfc
  • class
  • customtag
  • ct
  • query
  • object
  • tag
  • function

Examples
Sample code invoking the systemCacheClear function

Clear all caches.

systemCacheClear();

Clear the template cache.

systemCacheClear("template");

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

Fork me on GitHub