--[[
	
	Grabs devProduct info - cleaner alternative to GetProductInfo. Caches and may potentially yield.
	
	Functions.GetProductInfo(
		id, 					<-- |REQ|	ID of devProduct. (w/o link)
	)
	
--]]




return function(id)
	--- Check cache
	if cachedProductInfo[id] == nil then
		--- Get product info
		local productInfo = _L.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
