A three part question which I hope someone can help me with.
I’d like to use a cached data set.
There is not too much documentation about how this can be done.
I have concluded that I need to create an object type variable and somehow get the data into it.
Will you provide some documentation or a video on how to do this?
The API that has the cached data I want to connect to requires authentication.
Normally I’d use the XANO Auth Token from the XANO auth plugin, but you cannot use variables for any field values in this dialog
I’d like to use a variable for the API end point just incase if changes in the future, but you cannot use variables in the URL like you can for a non cached API request.
Firstly, you have this documentation that explain what is the cached collection: 🎭 Data Collection Types
I don’t understand why you want to create and object type variable. Could you explain me?
It’s normal to don’t have bindable url and parameter for cached collection, because you don’t want to have this collection change dynamically. If you select dynamic, you will see all url and parameter bindable
If you are using a data source like Xano then you can specify the data source with X-Data-Source either as a query string or a post value for instance xano.com?x-data-source=test.
Also, if you are working on a multi user site with different groups of users e.g. Admin, Location Manager, Public User then a cached collection would be different for each different group.
I’m still unsure about using Dynamic vs Cached. I understand when to prefer Cached (I use Airtable), but I don’t understand what the you'll need to refresh the data yourself when it changes means for my app. What concrete steps do I must follow to do that? How do I refresh the data of a collection manually? Can I do it for a single record?
When configuring the collection, you’ll see this section. If you click on one of the “Hooks to sync WeWeb cache” button, it’ll copy the webhook URL. You can then use any workflow to trigger the refresh by calling that URL.