Clearing the Qlik Web Connectors cache
Some connectors cache the data locally, improving the load time after the initial download of data, and reducing the number of API calls. Over time it becomes necessary to clear or compress the cached data.
Clearing the cache manually
To delete the data cached for a connector, do the following:
- After selecting the connector, click on the Settings tab.
- In General Connector Settings click on the Clear Cached Data button.
- Confirm the deletion by clicking OK.
- A Cache cleared message should appear. Click OK.
Clearing the cache using a load script
You can clear the cache in your load script by using the following:
You just need to replace CONNECTOR_NAME with the correct value. This is the value present in the same location in the URL in the other load statements you use for this connector.
For example, when you are fetching data from a account, you can place this as the first statement in your load script, perhaps running it conditionally based on the number of days since your last reload.
Some connectors support an additional parameter:
Here you can pass in a string with * wildcards to further specify which cached items are to be deleted. Currently only the Facebook Insights support this , using:
So, for example, to clear all the cached items for the QlikView Facebook page use:
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.
Compressing the Cache folder
A large number of files can accumulate in the cache directory and for this reason we would recommend configuring Windows to compress the folder.
By default the Qlik Web Connectors cache is located in the Data folder in the Qlik Web Connectors folder created when during installation. For example if Qlik Web Connectors is located in the folder C:\QlikWebConnectors\, then the cache for each connector will be located at:
Locate the Data folder in Windows Explorer, and do the following:
- Right click on the Data folder and select Properties from the drop-down menu.
- Click the Advanced button.
- In the Advanced Attributes dialog check the Compress contents to save disk space option. Click OK.
- Confirm the attribute change by selectiing the Apply changes to this folder, subfolders and files radio button. Click OK.
- Check that the Data folder is now highlighted in blue text to indicate that it is compressed.