Skip to content

Conversation

@Biostate
Copy link

@Biostate Biostate commented May 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant