kkarpieszuk / wc-price-history

Track Woocommerce Products prices history and display the lowest price in the last 30 days. This plugin allows your WC shop to be compliant with European Commision Directive 98/6/EC Article 6a which specyfies price reduction annoucment policy.
MIT License
6 stars 4 forks source link

optimize \PriorPrice\HistoryStorage::get_minimal_from_sale_start if it is from sale start, do not check all the history, return from some transient #14

Closed kkarpieszuk closed 1 year ago

kkarpieszuk commented 1 year ago

doable only when #10 is merged

kkarpieszuk commented 1 year ago

also: this method uses very similar code to get_minimal, think about removing code duplication