You are here

public function ProductVariation::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/ProductVariation.php, line 71

Class

ProductVariation
Default argument plugin to extract a product variation.

Namespace

Drupal\commerce_product\Plugin\views\argument_default

Code

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