mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-10-25 13:29:54 +00:00
Bugfix: Work Item GH-193 - Fix to empty worksheet garbage collection when using cell caching
This commit is contained in:
@@ -43,7 +43,7 @@ class PHPExcel_CachedObjectStorage_MemorySerialized extends PHPExcel_CachedObjec
|
||||
* @throws PHPExcel_Exception
|
||||
*/
|
||||
protected function _storeData() {
|
||||
if ($this->_currentCellIsDirty) {
|
||||
if ($this->_currentCellIsDirty && !empty($this->_currentObjectID)) {
|
||||
$this->_currentObject->detach();
|
||||
|
||||
$this->_cellCache[$this->_currentObjectID] = serialize($this->_currentObject);
|
||||
|
||||
Reference in New Issue
Block a user