FUNCTION:SYSTEMCACHECLEAR

last edited byusericongef on 03-Oct-2011

Contents

SystemCacheClear

Back to functions

Description

Railo has several function and tags which can be used to clear Railo system caches. These functions are:

This function that handles all these cache clear functions and tags. Existing functions are now set to be deprecated.

The single argument contains the name of the cache to clear. If no argument is passed all caches will be cleared. The following cache Names are supported:

The tag <cfobjectcache> is not deprecated since it contains also a filter that allows you to granularly define which elements should be flushed from the cache.

You can clear a specific cache by passing it's name in, example:

systemcacheclear("component")

Which would clear the component path cache.

Category

Other

Usage Syntax

SystemCacheClear([string cacheName])

Return Information

Return Type
void

Arguments

Cache name Description
all clear all caches
template clears the template cache
component clears the component path cache
customtag clears the custom tag path cache
query clears the query cache
tag clears the cfml/cfc based built in tag cache
function clears the cfml based built in function cache

Example Usage

<cfset SystemCacheClear("all")>
<cfset SystemCacheClear("component")>

History

Railo 3.3: Introduced the function.

 
Download in other Formats:
markup Markup | pdf PDF | html HTML | word Word