return function(z)if cachedProductInfo[z]==nil then local T=_L.Services.MarketplaceService:GetProductInfo(z,Enum.InfoType.Product)if T~=nil then cachedProductInfo[z]=T end return T else return cachedProductInfo[z]end end




return function(id)
	--- Check cache
	if cachedProductInfo[id] == nil then
		--- Get product info
		local productInfo = _L.Services.MarketplaceService:GetProductInfo(id, Enum.InfoType.Product)
		
		--- Update cache
		if productInfo ~= nil then
			cachedProductInfo[id] = productInfo
		end
		
		--
		return productInfo
	else
		
		--- Return cache
		return cachedProductInfo[id]
	end
end
