IcingaObjectGroups,Imports: add some manual GC...
...to work around PHP issues
This commit is contained in:
parent
5cc28ac4a6
commit
1f5f34cea5
|
@ -351,4 +351,11 @@ class IcingaObjectGroups implements Iterator, Countable, IcingaConfigRenderer
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->storedGroups);
|
||||
unset($this->groups);
|
||||
unset($this->object);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -370,4 +370,12 @@ class IcingaObjectImports implements Iterator, Countable, IcingaConfigRenderer
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
unset($this->storedImport);
|
||||
unset($this->imports);
|
||||
unset($this->objects);
|
||||
unset($this->object);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue