clearCacheItem( cachekey ) method

This function clears an item from the contents of the on-device request result cache for the current hybrid app.

Syntax

<static> clearCacheItem( cachekey )

Parameters

Name Type Description
cachekey string The key for the cache item to be removed.This is the same key that was passed to hwc.doOnlineRequest.

Example

// The cache key is set when calling hwc.doOnlineRequest_CONT
hwc.doOnlineRequest( ., ., ., ., ., ., ., cacheKey, ., .);
// At some later point if we want to clear the cache for the above request, we use the following code:
hwc.clearCacheItem( cacheKey );

Source

hwc-comms.js, line 855.