From 2b6834f65c876f9df510d49969dd87d8e6d39675 Mon Sep 17 00:00:00 2001 From: marcvangend <info@marcvangend.nl> Date: Wed, 28 Oct 2015 13:44:36 +0100 Subject: [PATCH] improve caching --- fieldblock.module | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fieldblock.module b/fieldblock.module index e377498..fa31053 100644 --- a/fieldblock.module +++ b/fieldblock.module @@ -76,7 +76,12 @@ function fieldblock_block_info() { foreach ($fieldblocks as $fieldblock_id => $description) { $blocks[$fieldblock_id] = array( 'info' => $description, - 'cache' => DRUPAL_CACHE_PER_PAGE, + // The block can not be cached, because the content of it (ie. the content + // of the field displayed in it) may vary based on whatever criteria the + // fieldblock.module is unaware of. Eg. the same field might be displayed + // differently for different users, for different roles, for different + // pages, etc. + 'cache' => DRUPAL_NO_CACHE, ); } -- GitLab