You are here

public function CurrentAuthenticatedUser::getCacheMaxAge in Search API Saved Searches 8

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

src/Plugin/views/argument_validator/CurrentAuthenticatedUser.php, line 137

Class

CurrentAuthenticatedUser
Validates whether the argument matches the current authenticated user.

Namespace

Drupal\search_api_saved_searches\Plugin\views\argument_validator

Code

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