Heat oil in a medium saucepan over medium heat until shimmering. Add in the onion and cook, stirring occasionally, until softened but not browned, 5 to 8 minutes. Add in the garlic and stir until fragrant, about 30 seconds. Add the tomato purée, brown sugar, vinegar, tomato paste, salt, mustard, cloves, allspice, and cayenne pepper and stir to combine. Bring to a boil, then reduce heat to low and simmer, stirring occasionally, until thickened to the consistency of ketchup, 45 to 60 minutes.