Using DataCache from wix-data-helpers...

I’d like to load some user data from a collection once when they start their session, keep it in the session perhaps, and only refresh it occasionally when one of their items is changed by a UX action. For example, list of videos played, downloaded content, favorites, etc.

It seems like the wix-data-helpers package’s DataCache function would be helpful: https://www.wix.com/velo/reference/velo-package-readmes/wix-data-helpers#velo-package-readmes_wix-data-helpers_data-cachejs

I can’t quite tell whether the cache function will do the job across pages.

Has anyone used this and know the answer?

Anyone from Wix?

Looked through the code and it seems that this only caches within a page - it stores it inside the DataCache object itself, without using a session etc.

If there’s any other way to cache data collection data across pages, would love to know!