Skip to content

Instantly share code, notes, and snippets.

@msonnabaum
Created March 20, 2014 19:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msonnabaum/9671947 to your computer and use it in GitHub Desktop.
Save msonnabaum/9671947 to your computer and use it in GitHub Desktop.
<?php
foreach (array_keys(views_get_all_views()) as $view) {
$view = views_get_view($view);
$view->display['default']->display_options['cache'] = array('type' => "none");
foreach ($view->display as $display_name => $display) {
$view->display[$display_name]->display_options['cache'] = array('type' => "none");
}
$view->save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment