From 6acd40325158bb905eb3005b8fbb9618c71af043 Mon Sep 17 00:00:00 2001 From: Carlos Montiers Date: Fri, 26 Aug 2016 22:09:41 +0900 Subject: [PATCH] In memory gzip cache method use max compression --- src/PhpSpreadsheet/CachedObjectStorage/MemoryGZip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/CachedObjectStorage/MemoryGZip.php b/src/PhpSpreadsheet/CachedObjectStorage/MemoryGZip.php index 9dc30f19..823c76f6 100644 --- a/src/PhpSpreadsheet/CachedObjectStorage/MemoryGZip.php +++ b/src/PhpSpreadsheet/CachedObjectStorage/MemoryGZip.php @@ -37,7 +37,7 @@ class MemoryGZip extends CacheBase implements ICache if ($this->currentCellIsDirty && !empty($this->currentObjectID)) { $this->currentObject->detach(); - $this->cellCache[$this->currentObjectID] = gzdeflate(serialize($this->currentObject)); + $this->cellCache[$this->currentObjectID] = gzdeflate(serialize($this->currentObject), 9); $this->currentCellIsDirty = false; } $this->currentObjectID = $this->currentObject = null;