Manual:$wgSidebarCacheExpiry

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