I have a problem in Boost module I have a dynamic site that Allow user to logged in to edit his content
after log into the site the login links disappear and another links loaded that contain user links (I use a custom block that check if user_is_logged_in echo <a href="nide/3/edit">you content</a>
else echo <a href="user">sign in</a>
)
but after installing boost the menu of login still appear after registration (still read the caching page)
is there any option that make pages to anonymous user only
This is my code
function login_block_info() {
$blocks = array();
$blocks['mylogin'] = array(
'info' => t('Custom Login'),
);
return $blocks;
}
function login_block_view($block_name = '') {
if ($block_name == 'mylogin')
{
$output ="";
if(user_is_logged_in())
{
global $user;
$query = "select nid from node where uid = " . $user->uid;
$result =db_query($query);
$nodes = array();
$output ='<ul class="register-menu">';
if(count($result)>0)
{
foreach ($result as $node) {
$alias = drupal_get_path_alias('node/'.$node->nid);
$output .= '<li>'.l($node->title,'node/'.$node->nid.'/edit').'</li>';
}
}
$output .= '<li>'.l(t('Change password'),'user/'.$user->uid.'/edit').'</li>';
$output .= '<li>'.l(t('log out'),'user/logout').'</li>';
$output .= "</ul>";
}
else
{
$output .='<ul class="register-menu">
<li><a onclick="open_login()">log in</a></li>
<li><a onclick="open_register()">sign up</a></li>
</ul>';
$output .= render(drupal_get_form('user_register_form'));
$output .= '</div>';
}
return array(
'subject' => t(''),
'content' => $output,
);
}
}
thanks