Tag.php

Same filename in other branches
  1. 9 core/modules/views/src/Plugin/views/cache/Tag.php
  2. 8.9.x core/modules/views/src/Plugin/views/cache/Tag.php
  3. 11.x core/modules/views/src/Plugin/views/cache/Tag.php

Namespace

Drupal\views\Plugin\views\cache

File

core/modules/views/src/Plugin/views/cache/Tag.php

View source
<?php

namespace Drupal\views\Plugin\views\cache;

use Drupal\Core\Cache\CacheBackendInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\views\Attribute\ViewsCache;

/**
 * Simple caching of query results for Views displays.
 *
 * @ingroup views_cache_plugins
 */
class Tag extends CachePluginBase {
    
    /**
     * {@inheritdoc}
     */
    public function summaryTitle() {
        return $this->t('Tag');
    }
    
    /**
     * {@inheritdoc}
     */
    protected function cacheExpire($type) {
        return FALSE;
    }
    
    /**
     * {@inheritdoc}
     */
    protected function getDefaultCacheMaxAge() {
        return CacheBackendInterface::CACHE_PERMANENT;
    }

}

Classes

Title Deprecated Summary
Tag Simple caching of query results for Views displays.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.