Hi,

I created a block to contain the menu of user's blog on my website.
But I have a problem when users login, the user are send back to the /blog and the menu still shows the button "signin" even if the user is logged in (cache problem I guess)

I checked how to get rid of the cache for this specific bloc or even the blog page, but nothing worked so far. Here is what I did:

In my orcblog module where the block is defined, I used the BLOCK_NO_CACHE.

<?php
function orcblog_block($op = 'list', $delta = 0, $edit = array()) {
    switch (
$op) {
        case
'list':
           
$blocks = array();
           
$blocks[0] = array(
               
'info' => t('Students Blogs Block'),
               
'cache' => BLOCK_NO_CACHE,
            );
            return
$blocks;
            break;
    }
}
?>

I installed the "cacheexclude" module and setted up for all pages "blog", "blog/*", "user", "user/*"
I emptied all the cache of the browser and server to do the test.

I really don't see what else I can do, the menu still doesn't refresh after login. Any suggestion on the matter?

Thank you in advance.

Eric

Comments

Couldn't find any solution so

Couldn't find any solution so I disabled the cache for blocks in Drupal.
It works but it is not ideal...

where is the 'view' implementation for your block

Where is the code the actually displays the block?
How do you have the block region defined for this block?

I don't think this is a cache problem.

nobody click here