mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-08-17 14:44:43 +00:00
Clear any In-Memory cache when destroying cell collection
This commit is contained in:
@@ -462,6 +462,10 @@ class Cells
|
||||
public function __destruct()
|
||||
{
|
||||
$this->cache->deleteMultiple($this->getAllCacheKeys());
|
||||
|
||||
if (method_exists($this->cache, 'clear')) {
|
||||
$this->cache->clear();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user