I've updated to the latest Revo ver 2.26 and now the site context specific references are not working as expected.
They seem to be pulling in values that are not associated with the current resource or context at all (cached?).
My setup uses a gateway plugin to route the page request to the proper context.
Page is requested:
http://www.mysite.com/mypage
gateway plugin fires onhandleRequest event
switch ($modx->getOption('http_host')) {
Case statement matches based on hostname, session vars are set, switch to proper site context
case 'www.mysite.com':
$_SESSION['siteName'] = 'Mysite';
$_SESSION['state'] = 'Texas';
$_SESSION['site_url'] = 'http://www.mysite.com';
$modx->switchContext('MySiteGeoState');
break;
The Modx resource is loaded
http://www.mysite.com/mypage
Both Tvs and session vars in this resource are sometimes being replaced with values that are not associate with the current context or session.
These appear to be from other active sessions/resources from a different site context.
examples of references that get replaced with unexpected values:
<title>[[*longtitle]]</title>
<link rel="canonical" href="[[!*relCanonical]]"/>
<p style="visibility:hidden;">[[!getSessionVar? &sessionVar=`state`]]</p>
Things I've Already Tried:
Set DisableGlobalCacheOptions=Yes and cleared cache.
Adding ! option to sessionVar and tv references.
I'm pretty sure that I had worked all this out and tested previously on the site contexts. I think something changed with the release update. I was previously running something in the 2.1x versions I believe.
Any help is appreciated.
-Brian