[TOC] [Prev] [Next] [Bottom]

<@PURGECACHE>

Syntax

<@PURGECACHE [PATH=pathToPurge] [TYPES=all|taf|include]>

Description

The purpose of the <@PURGECACHE> meta tag is to allow selective purging of Tango's file cache. The design of this meta tag includes considerations for Tango Servers deployed in an ISP environment.

The PATH attribute specifies the path (relative to the Web server's document root) to the directory (and any contained subdirectories) to purge. This path attribute only functions if the contents of user$configPasswd match system$configPasswd; that is, if the user has appropriate rights on the Tango system. For example, in an ISP environment, requiring that the password be set allows system administrators to purge the entire cache while restricting customers to purging only their own documents from the cache.

The TYPES attribute specifies the type of files to purge from the cache. taf refers to any application file; include refers to include files; all refers to both application and include files. Default is all.

Example

<@PURGECACHE>

Purges all files cached from the calling application file's directory, as well as any subdirectories.

<@PURGECACHE TYPE=include>

Purges all include files cached from the calling application file's directory, as well as any subdirectories.

<@PURGECACHE PATH="/test">

If the variable user$configPasswd has not been set, this results in an error.

<@ASSIGN user$configPasswd value="myConfigPasswd">
<@PURGECACHE PATH="/test">

Purges all files cached from the calling application file's directory, as well as any subdirectories.

<@ASSIGN user$configPasswd value="correctPassword">
<@PURGECACHE PATH="/">

Purges all files from Tango Server's cache.

See Also

cacheIncludeFiles



[TOC] [Prev] [Next] [Bottom]

docs@pervasive.com
Copyright © 1999, Pervasive Software. All rights reserved.