You are here

cache_actions_test_view_no_cache.php in Cache Actions 7

Same filename and directory in other branches
  1. 6.2 cache_actions_test/views/cache_actions_test_view_no_cache.php

File

cache_actions_test/views/cache_actions_test_view_no_cache.php
View source
<?php

/**
 * @file
 * This view has caching enabled, but will not be cleared by a rule.
 * It is used to verify that only the selected part of the view will
 * be cleared.
 */
$view = new view();
$view->name = 'cache_actions_test_view_no_cache';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE;

/* Edit this to true to make a default view disabled initially */
$handler = $view
  ->new_display('default', 'Defaults', 'default');
$handler
  ->override_option('access', array(
  'type' => 'none',
));
$handler
  ->override_option('cache', array(
  'type' => 'rules',
));
$handler
  ->override_option('row_plugin', 'node');
$handler = $view
  ->new_display('panel_pane', 'Content pane', 'panel_pane_1');
$handler
  ->override_option('pane_title', '');
$handler
  ->override_option('pane_description', '');
$handler
  ->override_option('pane_category', array(
  'name' => 'View panes',
  'weight' => 0,
));
$handler
  ->override_option('allow', array(
  'use_pager' => FALSE,
  'items_per_page' => FALSE,
  'offset' => FALSE,
  'link_to_view' => FALSE,
  'more_link' => FALSE,
  'path_override' => FALSE,
  'title_override' => FALSE,
  'exposed_form' => FALSE,
  'fields_override' => FALSE,
));
$handler
  ->override_option('argument_input', array());
$handler
  ->override_option('link_to_view', 0);
$handler
  ->override_option('inherit_panels_path', 0);
$handler = $view
  ->new_display('block', 'Block', 'block_1');
$handler
  ->override_option('block_description', '');
$handler
  ->override_option('block_caching', -1);
$handler = $view
  ->new_display('page', 'Page', 'page_1');
$handler
  ->override_option('path', 'cache-actions-test-view-no-cache');
$handler
  ->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler
  ->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));