Hey!
I´m trying to use a cached catalog for some cloudscript calls, buto for some reason is not working. My code to obtain the cached catalog is this:
function getCachedPlayfabCatalog() { if (typeof getCachedPlayfabCatalog.catalogItems == 'undefined') { var getCatalogItemsResponse = server.GetCatalogItems({CatalogVersion:catalog}); getCachedPlayfabCatalog.catalogItems = getCatalogItemsResponse.Catalog; } return getCachedPlayfabCatalog.catalogItems; };
It´s something similar to explained in this post: https://community.playfab.com/questions/28524/cloud-script-staticvalue-to-improve-speed.html
But, when I log the object "getCachedPlayfabCatalog.catalogItems", it never has a value (after the getCachedPlayfabCatalog function), so it seems that the cache (or the object) is not static between calls.
Do you know what can be the problem?