I have logintoboggan module in my site and i am using the logintoboggon logged in block to show the username and logout button.
For the cached pages the username is not changing.
This is similar to the issue https://drupal.org/node/794988

Comments

znerol’s picture

For the cached pages the username is not changing.

Authcache saves the whole page to the cache. In order to exclude certain fragments of the page, you need to configure them specifically. In your case enable Authcache Block, then edit the logintoboggon logged in block and enable Authcache Personalization for it (granularity: per-role).

ktrev’s picture

In the documentation ( https://drupal.org/node/996452 ) I read that we can use global variables like $user_name in authcache.
Is this available in drupal 7.I tried to print it.But it returned a null value.

znerol’s picture

Authcache 2 does not add custom fragments anymore. The tutorial should give you an idea of the overall process. I will add more documentation before releasing the stable version.

znerol’s picture

Component: Miscellaneous » Documentation

Moving this to documentation.

znerol’s picture

Status: Active » Closed (works as designed)