Clears the cache associated with a provided route or routes.
Responses to requestExtensionData and requestPlatformData are stored in a shared cache between all extensions. Tecton provides two methods to work with the cache: clearCache for clearing the cache and notifying others, and cacheCleared which enables an extension to be notified when the cache for a route is cleared.
tecton.actions.clearCache(routePrefixes: any): Promise<void>;Clear the cache for multiple routes and then refetch the data.
tecton.actions.clearCache('/accounts', '/foo', '/bar/1').then(function() {
fetchAccounts();
fetchFoo();
fetchBar(1);
});When using the clearCache action, there are important details to keep in mind.
When using clearCache, pass the most general routes that have been affected. Any specific routes that start with the passed string will also be cleared and notified. For example, clearCache('/account') will notify someone who has subscribed using cacheCleared('/account/1').
routePrefixes