Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CachePluginBase.php

function CachePluginBase::getDefaultCacheMaxAge

Returns the default cache max age.

1 call to CachePluginBase::getDefaultCacheMaxAge()
CachePluginBase::getCacheMaxAge in core/modules/views/src/Plugin/views/cache/CachePluginBase.php
Gets the max age for the current view.
2 methods override CachePluginBase::getDefaultCacheMaxAge()
Tag::getDefaultCacheMaxAge in core/modules/views/src/Plugin/views/cache/Tag.php
Returns the default cache max age.
Time::getDefaultCacheMaxAge in core/modules/views/src/Plugin/views/cache/Time.php
Returns the default cache max age.

File

core/modules/views/src/Plugin/views/cache/CachePluginBase.php, line 274

Class

CachePluginBase
The base plugin to handle caching.

Namespace

Drupal\views\Plugin\views\cache

Code

protected function getDefaultCacheMaxAge() {
    // The default cache backend is not caching anything.
    return 0;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal