Manual:$wgRevisionCacheExpiry

Details
Revision text may be cached in   to reduce load on external storage servers and object extraction overhead for frequently-loaded revisions.

Set to 0 to disable, or number of seconds before cache expiry.

Changes
Prior to MediaWiki 1.28 this setting defaulted to.