From 9559160204f1c4e72e145cf95d61bf61e4bd1fcf Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Tue, 4 Nov 2014 20:07:30 -0500 Subject: Issue #1930960 by pounard, iamEAP, pjcdawkins, msonnabaum, David_Rothstein: Fixed Block caching disable hardcoded on sites with hook_node_grant() causes serious performance troubles when not necessary. --- sites/default/default.settings.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'sites/default') diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index fc1240d0d..449f18867 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -434,6 +434,18 @@ ini_set('session.cookie_lifetime', 2000000); # $conf['css_gzip_compression'] = FALSE; # $conf['js_gzip_compression'] = FALSE; +/** + * Block caching: + * + * Block caching may not be compatible with node access modules depending on + * how the original block cache policy is defined by the module that provides + * the block. By default, Drupal therefore disables block caching when one or + * more modules implement hook_node_grants(). If you consider block caching to + * be safe on your site and want to bypass this restriction, uncomment the line + * below. + */ +# $conf['block_cache_bypass_node_grants'] = TRUE; + /** * String overrides: * -- cgit v1.2.3