This goes way beyond my limited php expertise. I look at the ParserCache.php code to understand, but I'm not sure if I do. Maybe I do not look at the right location.
Will there be a major benefit to not disable the cache. I do not expect more than a couple hundreds hit per day on the site , and this will only be use for the main page. Most people will have a direct link to other wiki page. Those have dynamic content and people will look at them to gather the data they're looking for.
Thank
On 7/20/07, Rob Church robchur@gmail.com wrote:
On 20/07/07, Gaetan Lord mediawiki@gaetanlord.ca wrote:
function wfAmILogged_Render( &$parser ) { $parser->disableCache(); global $wgUser; if ($wgUser->isLoggedIn()) { return "1"; } else { return ""; }
You can avoid disabling the parser cache for this if you hook User::getPageRenderingHash() and append login state information. There should be an example of doing this in our Subversion repository.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l