Skip to content

Instantly share code, notes, and snippets.

@damiankloip
Created April 5, 2013 16:51
Show Gist options
  • Save damiankloip/5320819 to your computer and use it in GitHub Desktop.
Save damiankloip/5320819 to your computer and use it in GitHub Desktop.
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