You are here

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

Class

CurrentStore
Default argument plugin for the current store.

Namespace

Drupal\commerce_store\Plugin\views\argument_default

Code

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