From: Aaron Schulz Date: Wed, 18 Jul 2012 06:25:30 +0000 (-0700) Subject: Free up some memory by unsetting large arrays in backend copy script. X-Git-Tag: 1.31.0-rc.0~23006^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=a3e0cd0886196acc411b5c3a28d0d63b526e8d62;p=lhc%2Fweb%2Fwiklou.git Free up some memory by unsetting large arrays in backend copy script. Change-Id: I55b6a6f8228370d948821dcd4de22fda51539fd0 --- diff --git a/maintenance/copyFileBackend.php b/maintenance/copyFileBackend.php index 544f48b6c7..498bc6b00b 100644 --- a/maintenance/copyFileBackend.php +++ b/maintenance/copyFileBackend.php @@ -90,6 +90,8 @@ class CopyFileBackend extends Maintenance { // Only copy the missing files over in the next loop $srcPathsRel = array_diff( $relFilesSrc, $relFilesDst ); $this->output( count( $srcPathsRel ) . " file(s) need to be copied.\n" ); + unset( $relFilesSrc ); + unset( $relFilesDst ); } $batchPaths = array();