Created
June 5, 2014 12:54
-
-
Save damiankloip/070107141164ea7496a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php | |
index d6b4775..56e6284 100644 | |
--- a/core/modules/views/src/ViewExecutable.php | |
+++ b/core/modules/views/src/ViewExecutable.php | |
@@ -9,6 +9,7 @@ | |
use Drupal\Core\DependencyInjection\DependencySerialization; | |
use Drupal\Core\Session\AccountInterface; | |
+use Drupal\Core\Site\Settings; | |
use Drupal\views\Plugin\views\query\QueryPluginBase; | |
use Drupal\views\ViewStorageInterface; | |
use Drupal\Component\Utility\Tags; | |
@@ -1247,7 +1248,7 @@ public function execute($display_id = NULL) { | |
$module_handler->invokeAll('views_pre_execute', array($this)); | |
// Check for already-cached results. | |
- if (!empty($this->live_preview)) { | |
+ if (!empty($this->live_preview) || Settings::get('views_cache_plugin_disable', FALSE)) { | |
$cache = $this->display_handler->getPlugin('cache', 'none'); | |
} | |
else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment