diff --git a/app/code/Magento/Directory/Model/Currency.php b/app/code/Magento/Directory/Model/Currency.php index a7637b83fa3f0..8782e022fe870 100644 --- a/app/code/Magento/Directory/Model/Currency.php +++ b/app/code/Magento/Directory/Model/Currency.php @@ -13,6 +13,7 @@ use Magento\Framework\Locale\Currency as LocaleCurrency; use Magento\Framework\Locale\ResolverInterface as LocalResolverInterface; use Magento\Framework\NumberFormatterFactory; +use Magento\Framework\ObjectManager\ResetAfterRequestInterface; use Magento\Framework\Serialize\Serializer\Json; /** @@ -23,7 +24,7 @@ * @SuppressWarnings(PHPMD.CouplingBetweenObjects) * @since 100.0.2 */ -class Currency extends \Magento\Framework\Model\AbstractModel +class Currency extends \Magento\Framework\Model\AbstractModel implements ResetAfterRequestInterface { /** * CONFIG path constants @@ -590,4 +591,12 @@ private function trimUnicodeDirectionMark($string) } return $string; } + + /** + * @inheritDoc + */ + public function _resetState(): void + { + $this->_rates = null; + } }