Clear any In-Memory cache when destroying cell collection

This commit is contained in:
MarkBaker
2022-05-17 17:56:27 +02:00
parent b8957205e1
commit b7ce35f7e1
+4
View File
@@ -462,6 +462,10 @@ class Cells
public function __destruct()
{
$this->cache->deleteMultiple($this->getAllCacheKeys());
if (method_exists($this->cache, 'clear')) {
$this->cache->clear();
}
}
/**