BUGFIX Folder::syncChildren() now uses far less memory - we do this by destroying the child object memory after use (from r82780)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89719 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-10-21 02:30:48 +00:00
parent 87a8af00c5
commit 6b0a508502

View File

@ -114,6 +114,9 @@ class Folder extends File {
$added += $childResult['added'];
$deleted += $childResult['deleted'];
}
// Clean up the child record from memory after use. Important!
$child->destroy();
}
// Iterate through the unwanted children, removing them all