*/
$wgEnableSidebarCache = false;
+/**
+ * Expiry time for the sidebar cache, in seconds
+ */
+$wgSidebarCacheExpiry = 86400;
+
/**
* Under which condition should a page in the main namespace be counted
* as a valid article? If $wgUseCommaCount is set to true, it will be
* @private
*/
function buildSidebar() {
- global $parserMemc, $wgEnableSidebarCache;
+ global $parserMemc, $wgEnableSidebarCache, $wgSidebarCacheExpiry;
global $wgLang, $wgContLang;
$fname = 'SkinTemplate::buildSidebar';
}
}
if ($cacheSidebar)
- $parserMemc->set( $key, $bar, 86400 );
+ $parserMemc->set( $key, $bar, $wgSidebarCacheExpiry );
wfProfileOut( $fname );
return $bar;
}