Diff configuration

Swarm's Diffs feature can be customized via the following config item.

Tip

If you make a configuration change, Swarm will not use it until the configuration cache has been reloaded, this forces Swarm to use the new configuration. You must be an admin or super user to reload the Swarm config cache. Navigate to the User id dropdown menu, select System Information, click the Cache Info tab, and click the Reload Configuration button.

max_diffs

If the number of diffs is greater than the configured maximum, then the list of diffs is truncated by default. An option will be given to show all the diffs for that file.

    'diffs' => array(
'max_diffs' => 1500,
),

max_total_diff_size

If the maximum size of the total diffs of a file exceeds the value set for max_total_diff_size, the first unread file will remain closed. By default, max_total_diff_size is set to 0.5 MB.

    'diffs' => array(
'max_total_diff_size' => 200000, // maximum size of the total diffs of a file in bytes, defaults to 0.2 MB
),