Manual:$wgCompressRevisions

Details
We can also compress text in the old revisions; for this, use the script compressOld.php located in directory /maintenance/storage. Any compressed revisions will be decompressed on load regardless of this setting but will not be readable at all if zlib support is not available.