You are here

public function CurrentUserCartIds::getCacheMaxAge in Commerce Core 8.2

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides CacheableDependencyInterface::getCacheMaxAge

File

modules/cart/src/Plugin/views/argument_default/CurrentUserCartIds.php, line 64

Class

CurrentUserCartIds
Default argument plugin for the current user's carts.

Namespace

Drupal\commerce_cart\Plugin\views\argument_default

Code

public function getCacheMaxAge() {
  return Cache::PERMANENT;
}