summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-09-11 15:12:29 +0000
committerDries Buytaert <dries@buytaert.net>2009-09-11 15:12:29 +0000
commit4d95e3d22a4e4a6bb9da95db992c7eba4ae9f267 (patch)
tree2b6bd2471d613b5b8abf50be69c4a8170fa022b7
parent960f84b4b414e940746ed4e7139fb152e4869e92 (diff)
downloadbrdo-4d95e3d22a4e4a6bb9da95db992c7eba4ae9f267.tar.gz
brdo-4d95e3d22a4e4a6bb9da95db992c7eba4ae9f267.tar.bz2
- 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.
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
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;
}