You are here

None.php in Views (for Drupal 7) 8.3

File

lib/Drupal/views/Plugin/views/cache/None.php
View source
<?php

/**
 * @file
 * Definition of Drupal\views\Plugin\views\cache\None.
 */
namespace Drupal\views\Plugin\views\cache;

use Drupal\Core\Annotation\Plugin;
use Drupal\Core\Annotation\Translation;

/**
 * Caching plugin that provides no caching at all.
 *
 * @ingroup views_cache_plugins
 *
 * @Plugin(
 *   id = "none",
 *   title = @Translation("None"),
 *   help = @Translation("No caching of Views data.")
 * )
 */
class None extends CachePluginBase {
  function cache_start() {

    /* do nothing */
  }
  public function summaryTitle() {
    return t('None');
  }
  function cache_get($type) {
    return FALSE;
  }
  function cache_set($type) {
  }

}

Classes

Namesort descending Description
None Caching plugin that provides no caching at all.