Problem: If you using database storage, getContent or getConditions methods always runs query to get data from database. For example if you call getTotal and getSubTotal methods they call getContent method twice and this will runs 2 same query on database.
Solution: define cachedContent and cachedConditions variable in Cart.php
Problem: If you using database storage, getContent or getConditions methods always runs query to get data from database. For example if you call getTotal and getSubTotal methods they call getContent method twice and this will runs 2 same query on database.
Solution: define cachedContent and cachedConditions variable in Cart.php