Lucee Function Reference
cacheclear()
Flushes the cache
Example
cacheclear([any filterOrTags,[string cacheName]]):number
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
filterOrTags | any | No |
You can define 2 different things here: 1. a String containing a key filter for the elements in the cache to flush, the filter follow the same rules as for cfdirectory-filter. 2. an Array containing tags defined when put the element to the cache |
cacheName | string | No | definition of the cache used by name, when not set the "default Object Cache" defined in Lucee Administrator is used instead. |