Forum Discussion

akshays's avatar
2 years ago

Require to load a component only a few times on the homepage.

We require a component on the homepage to be loaded only a certain number of times.

To store this number, we can't use user level cache as it will get updated every time the component loads up.

We will require this data to be on the user level. Is there certain data that we can use already? In what way can we achieve this? 

Any help would be appreciated.

  • Can't you use a cookie?

    If the data needs to be persistent  on the server side you could ask support for a custom metadata field for your users, there you can store whatever you want via API and retrieve the value stored within your component (through the API as well).