diff --git a/plugins/cache/graceful.inc b/plugins/cache/graceful.inc index 664bef019dbb097cc5c13b03cd58cda5abde88cb..ae76d9cb7aff7d04c5142358433ea686f9a49b59 100755 --- a/plugins/cache/graceful.inc +++ b/plugins/cache/graceful.inc @@ -25,6 +25,12 @@ $plugin = array( * Get cached content. */ function cache_graceful_panels_cache_get_cache($conf, $display, $args, $contexts, $pane = NULL) { + if (!$pane) { + // Only pane caching is supported on D6, due to missing renderer_handler object on display object. + // @todo Fallback to timebased cache? + watchdog('cache_graceful', 'Graceful caching of display not supported', array(), WATCHDOG_ERROR); + return FALSE; + } $cid = cache_graceful_panels_cache_get_id($conf, $display, $args, $contexts, $pane); $cache = cache_graceful( $cid,