mirror of
https://github.com/mainwp/mainwp-child.git
synced 2025-09-12 00:00:42 +08:00
This commit is contained in:
parent
5e843bfa52
commit
70f214544c
1 changed files with 4 additions and 4 deletions
|
@ -617,8 +617,8 @@ class MainWPBackup
|
|||
|
||||
if ($this->gcCnt > 20)
|
||||
{
|
||||
@gc_enable();
|
||||
@gc_collect_cycles();
|
||||
if (function_exists('gc_enable')) @gc_enable();
|
||||
if (function_exists('gc_collect_cycles')) @gc_collect_cycles();
|
||||
$this->gcCnt = 0;
|
||||
}
|
||||
|
||||
|
@ -628,8 +628,8 @@ class MainWPBackup
|
|||
$this->zip->close();
|
||||
$this->zip = null;
|
||||
unset($this->zip);
|
||||
@gc_enable();
|
||||
@gc_collect_cycles();
|
||||
if (function_exists('gc_enable')) @gc_enable();
|
||||
if (function_exists('gc_collect_cycles')) @gc_collect_cycles();
|
||||
$this->zip = new ZipArchive();
|
||||
$this->zip->open($this->zipArchiveFileName);
|
||||
$this->zipArchiveFileCount = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue