Manual:$wgSidebarCacheExpiry

Details
Expiry time for the sidebar cache, in seconds (default: 1 day), has no effect if   is set to false (default).