You just need to replace CONNECTOR_NAME with the the right value, this will be the value present in the same place in the url for the other load statements you use for this connector.
So for example for the Twitter Connector you could place this as the first statement in your load script, perhaps running it conditionally based on the number of days since your last reload.
1 2 3 4 5 6 7 8
ClearCache: LOAD [Qlik Web Connectors_ClearCache_Result], [Qlik Web Connectors_ClearCache_SearchPattern], [Qlik Web Connectors_ClearCache_NoItemsDeleted] FROM [http://localhost:5555/data?connectorID=TwitterConnector&clearcache=true] (txt, utf8, embedded labels, delimiter is '\t', msq);
Some connectors support an additional paramter: &clearcache_searchPattern=
Here you can pass in a string with * wildcards to further specify which cached items are to be deleted. Currently only the Facebook for Pages Connector and Facebook Insights Connector supports this - typically you would use 'clearcache_searchPattern=[pagename_or_id]'. So for example to clear all the cached items for the QlikView Facebook page simply use.
1 2 3 4 5 6 7 8
ClearCache: LOAD [Qlik Web Connectors_ClearCache_Result], [Qlik Web Connectors_ClearCache_SearchPattern], [Qlik Web Connectors_ClearCache_NoItemsDeleted] FROM [http://localhost:5555/data?connectorID=FacebookFanPagesConnector&clearcache=true&clearcache_searchPattern=qlikview_*] (txt, utf8, embedded labels, delimiter is '\t', msq);
Only Deleting Items Older Than X Hours
You can use the parameter:
Where X is an integer greater than or equal to zero. If this is specified, then only items older than this will be deleted.
Changing the Cache Directory
By default the Qlik Web Connectors cache will be contained in a sub-directory under QlikWebConnectors.exe. For example if Qlik Web Connectors is running in the folder: - F:\Qlik Web Connectors\
the cache for each connector will be located at: - F:\Qlik Web Connectors\App_Data\[User]\[CONNECTOR_NAME]_Cache
where [User] is the GUID for the user logged in when setting up the connector (Default GUID for Admin is DEFAULT0-000-000-000-00000000000)
As an example, results from the sentiment analyzer will be cached at: - F:\Qlik Web Connectors\App_Data\DEFAULT0-000-000-000-00000000000\SentimentAnalyser_Cache
You can change the directory where the cache is installed by editing deploy.config and change the FileBasedCacheProvider setting:
A large number of files can accumulate in the cache directory and for this reason we would recommend configuring Windows to compress it. To do this right click on your App_Data folder and select properties:
The click the 'Advanced' button:
Then check the 'Compress' option:
You should then confirm the following:
You should then see the folder highlighted in blue illustrating that it is compressed.