Skip to content
Snippets Groups Projects
Commit 2b6834f6 authored by Marc van Gend's avatar Marc van Gend
Browse files

improve caching

parent dae43a2b
No related branches found
No related tags found
No related merge requests found
......@@ -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,
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment