diff --git a/src/PhpSpreadsheet/Collection/Cells.php b/src/PhpSpreadsheet/Collection/Cells.php index 20fccf48a..d013704d0 100644 --- a/src/PhpSpreadsheet/Collection/Cells.php +++ b/src/PhpSpreadsheet/Collection/Cells.php @@ -462,6 +462,10 @@ class Cells public function __destruct() { $this->cache->deleteMultiple($this->getAllCacheKeys()); + + if (method_exists($this->cache, 'clear')) { + $this->cache->clear(); + } } /**