The datacacheClear Web API Method

Clear data cache stored data.

Version: 1.7

Required Permissions: Full

HTTP method: POST

Supported by Editions: All

Request Parameters:  

Parameter

 Type

Required

Description

keys

Array

Yes

Stored items to clear. This is an array of explicit items to be cleared from the cache. This array must have at least one value.

If an item has a namespace it is formatted <namespace>::<item-key>

To Clear a namespace of all items, use the format (without any key specified): ‘<namespace>::'

Expected Response Code: 200 OK. For more information see Response Format.

Response Type: cacheClear

Possible Action Specific Error Codes: This action has no specific error codes

Example

Usage Example

Request

POST /ZendServer/Api/datacacheClear

keys[]=cached_item&keys[]=namespace::cached_item2...

Response

<?xml version="1.0" encoding="UTF-8"?>

<zendServerAPIResponse xmlns="http://www.zend.com/server/api/1.7">

<requestData>

<apiKeyName><![CDATA[Admin]]></apiKeyName>

<method>datacacheClear</method>

</requestData>

</zendServerAPIResponse>