I have the latest dev. release (June 24th).
The "friendlist actions to the content's author" block has a caching issue. If I have "cache blocks" turned on, under the performance settings, the bock is cached, and won't change when you view different pages, with different node authors.
To be clear, if I'm logged in as someone other than Admin, and I view content by UserA first, the actions block displays the appropriate actions towards UserA. However, for any subsequent nodes I view the actions remain those actions for UserA, until I clear the cache. Once the cache is cleared, the process repeats.
The following two javascripts aren't loaded once the block has been cached:
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/popups/popups.css?b" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/popups/popups-skin.css?b" />
If I disable "block cache" under "settings/performance" then it appears to work ok. But, since my site has mostly authenticated users, I need block caching! Thoughts on getting the block to with with caching? Thanks.
Comments
Comment #1
mercmobily commentedHi,
Do you have any idea how to disable caching for a selected block?
That's what we need here. Good point...
Merc.
Comment #2
gallamine commentedThe "Block Cache" (http://drupal.org/project/blockcache) module for D5 allowed you to selectively cache blocks. The module was never ported to D6 because supposedly D6 supported it native. Unfortunately, I don't think the selective block caching option was incorporated into the core, afaik. So, no, I don't know how to to tell one block not to cache.
Comment #3
gallamine commentedPerhaps this node is of help: http://drupal.org/node/359264
It looks like you might be able to use,
$blocks[$name]['cache'] = BLOCK_NO_CACHE;to disable caching for a single block.
EDIT: Hook_block api - http://api.drupal.org/api/function/hook_block/6
Comment #4
mercmobily commentedHi,
THank you gallamine !!
Are you able to test it to see if it actually fixes the problem?
Thanks!
Merc.
Comment #5
gallamine commentedMercmobily, I tried adding the following lines to the friendlist_blocks.module file, at line 26 (right below the $blocks[]['info'] settings), and it didn't seem to change things:
Perhaps I'm missing something? Those lines, according to the hook_block API reference, should disable the block cache for these, but it didn't.
Comment #6
gallamine commentedMerc,
I was able to install the Block Cache Alter (http://drupal.org/project/blockcache_alter) module and achieved the same results, but it's a pain to have to install a whole separate module just to handle this.