You are here

public function Product::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/product/src/Plugin/views/argument_default/Product.php, line 71

Class

Product
Default argument plugin to extract a product.

Namespace

Drupal\commerce_product\Plugin\views\argument_default

Code

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