summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Skovgaard Gielfeldt2012-10-14 22:18:31 (GMT)
committer Thomas Skovgaard Gielfeldt2012-10-14 22:18:31 (GMT)
commit8cefd80eb64e5818621624967202a4c17e1a83c8 (patch)
tree817eb95b66f7ad091054110765ba36cf503c2e14
parenta34c4ab6b23c6e370a2c28897f34af52a3d3bf84 (diff)
Disable graceful caching of displays.
-rwxr-xr-xplugins/cache/graceful.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/cache/graceful.inc b/plugins/cache/graceful.inc
index 664bef0..ae76d9c 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,