mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
87a8af00c5
commit
6b0a508502
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user