You are here

public function CartProvider::clearCaches in Commerce Core 8.2

Clears the static caches.

Overrides CartProviderInterface::clearCaches

File

modules/cart/src/CartProvider.php, line 190

Class

CartProvider
Default implementation of the cart provider.

Namespace

Drupal\commerce_cart

Code

public function clearCaches() {
  $this->cartData = [];
}