-
☆ A M B ☆
- 2,475 Posts
I think this may be related to a weird caching issue I’m experiencing with 2.1.3-pl: I can login to my site fine, but the chunks don’t swap, so the user always sees the "Login" link, for example, when with previous versions of Revo, this was toggling (as expected) between "Login" and "Logout" links. Is this something to do with Revo or with the Snippets?
Login version 1.6.5-public
Personalize 3.2.1 beta1
Personalize is dead simple. The relevant code would be:
if ($modx->user->hasSessionContext($modx->context->get('key')) ) {
$output = $modx->getChunk($yesChunk);
} else {
$output = $modx->getChunk($noChunk);
}
return $output;
You are calling it uncached, right? [[!Personalize . . .]]
Is the Personalize tag embedded in another tag or in a chunk? If so, you could try taking it out and calling it directly in the page content. That might expose any caching issues.