Closed (fixed)
Project:
Node Terms in a Block
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2010 at 18:21 UTC
Updated:
29 Sep 2010 at 13:41 UTC
As soon as I enable Drupal's "Block cache" option I get random and wrong results for the term values in the blocks created by nodeterms.
I added 'cache' => BLOCK_NO_CACHE to your code but can't find out why this doesn't work.
case 'list':
$blocks = array();
if (count($vocabularies)) {
foreach ($vocabularies as $vocabulary) {
$blocks[$vocabulary->vid] = array(
'info' => 'Vocabulary: ' . $vocabulary->name,
'cache' => BLOCK_NO_CACHE,
);
}
}
return $blocks;
Any help, idea would be appreciated.
Comments
Comment #1
jbiechele commentedUops my fault. It works with 'cache' => BLOCK_NO_CACHE
Just had to delete the already created blocks and let them be created again by nodeterms.
Fixed and closed.