SystemCacheClear

Clears many of the caches in the runtime.

By default with no arguments, it will clear all caches.

The following caches can be cleared:

  • all - Clear everything

  • page - Clear the compiled class pools

  • class - Clear the class path resolvers

  • template - Clear all the templates cached using the bx:cache component

  • query - Clears the cache storing queries

  • object - Clear the default cache region

Method Signature

SystemCacheClear(cacheName=[string])

Arguments

Argument
Type
Required
Description
Default

cacheName

string

false

all

Examples

Clear all caches

Clear all caches.

Run Example

Clear the template cache

Clear the template cache.

Run Example

Additional Examples

Last updated

Was this helpful?