Created
April 5, 2013 16:51
-
-
Save damiankloip/5320819 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/lib/Drupal/views/ViewsDataCache.php b/core/modules/views/lib/Drupal/views/ViewsDataCache.php | |
index bc5bd02..611e117 100644 | |
--- a/core/modules/views/lib/Drupal/views/ViewsDataCache.php | |
+++ b/core/modules/views/lib/Drupal/views/ViewsDataCache.php | |
@@ -128,10 +128,10 @@ public function get($key = NULL) { | |
} | |
if (isset($this->storage[$key])) { | |
- if (!$from_cache) { | |
+ if (!$from_cache && !isset($this->requestedTables[$key])) { | |
// Add this table to a list of requested tables, as it's table cache | |
// entry was not found. | |
- array_push($this->requestedTables, $key); | |
+ $this->requestedTables[$key] = $key; | |
} | |
return $this->storage[$key]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment