Index: CategoryTree/CategoryTreeFunctions.php =================================================================== --- CategoryTree/CategoryTreeFunctions.php (revision 63630) +++ CategoryTree/CategoryTreeFunctions.php (working copy) @@ -307,11 +307,14 @@ * load CategoryTreeFunctions.php on demand. */ function ajax( $category, $depth = 1 ) { - global $wgDBname; + global $wgDBname, $wgUser; $title = self::makeTitle( $category ); if ( ! $title ) return false; #TODO: error message? + # configkey needed to take into account variant and secure options. + $configkey = $wgUser->getPageRenderingHash(); + # Retrieve page_touched for the category $dbkey = $title->getDBkey(); $dbr = wfGetDB( DB_SLAVE ); @@ -321,7 +324,7 @@ 'page_title' => $dbkey, ), __METHOD__ ); - $mckey = "$wgDBname:categorytree(" . $this->getOptionsAsCacheKey( $depth ) . "):$dbkey"; + $mckey = "$wgDBname:categorytree(" . $this->getOptionsAsCacheKey( $depth ) . "):$dbkey:$configkey"; $response = new AjaxResponse();