From 4d95e3d22a4e4a6bb9da95db992c7eba4ae9f267 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 11 Sep 2009 15:12:29 +0000 Subject: - 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.inc b/includes/common.inc index ff0acc58f..437309197 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -4126,7 +4126,7 @@ function drupal_render(&$elements) { } // 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; } -- cgit v1.2.3