Commit 261708 by dries
- Patch #495968 by Moshe Weitzman, catch: follow-up patch to fix bug with language-specific caching and to improve the performance of the caching code.
--- includes/common.inc 2009/09/10 22:10:10 1.987
+++ includes/common.inc 2009/09/11 15:12:29 1.988
@@ -4126,7 +4126,7 @@
}
// Try to fetch the element's markup from cache and return.
- if ($cached_output = drupal_render_cache_get($elements)) {
+ if (isset($elements['#cache']) && $cached_output = drupal_render_cache_get($elements)) {
return $cached_output;
}
+++ includes/common.inc 2009/09/11 15:12:29 1.988
@@ -4126,7 +4126,7 @@
}
// Try to fetch the element's markup from cache and return.
- if ($cached_output = drupal_render_cache_get($elements)) {
+ if (isset($elements['#cache']) && $cached_output = drupal_render_cache_get($elements)) {
return $cached_output;
}