Commit 4d95e3d2 authored by Dries's avatar Dries

- Patch #495968 by Moshe Weitzman, catch: follow-up patch to fix bug with...

- 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.
parent 960f84b4
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment