return function(P)if not cachedGamepassInfo[P]then local p=_L.Services.MarketplaceService:GetProductInfo(P,Enum.InfoType.GamePass)if p then cachedGamepassInfo[P]=p end return p else return cachedGamepassInfo[P]end end
--[[
	
	Grabs gamepass info - cleaner alternative to GetProductInfo. Caches and may potentially yield.
	
	Functions.GetGamepassInfo(
		id, 					<-- |REQ|	ID of gamepass. (w/o link)
	)
	
--]]

return function(id)
	--- Check cache
	if not cachedGamepassInfo[id] then
		--- Get product info
		local productInfo = _L.Services.MarketplaceService:GetProductInfo(id, Enum.InfoType.GamePass)

		--- Update cache
		if productInfo then
			cachedGamepassInfo[id] = productInfo
		end

		--
		return productInfo
	else
		--- Return cache
		return cachedGamepassInfo[id]
	end
end
