The most common theme element for logged-in users is a username link (e.g. "Hello, [username]"). Authcache defines several new variables to use in your theme files (e.g., page.tpl.php):
$user_nameto display the logged-in user name
$user_linkto display the name linked to their profile (both work for cached and non-cached pages).
A global variable named
$is_page_authcacheis set to TRUE when a page is to be cached. This variable may change to FALSE during page generation, however, such as when a status message is displayed. You may also set it to FALSE to programmatically disable caching.
The authcache_preprocess() function defines these variables. For example, if a page is to be cached, then the output of
For more information about Drupal Development, Drupal Expert, Drupal Developer and Drupal Programmer visit at http://www.dckap.com