Add cleanup subscribers counts cache

[MAILPOET-3714]
This commit is contained in:
Jan Lysý
2021-07-23 15:19:41 +02:00
committed by Veljko V
parent 2deaeb284b
commit 19fad073d0
4 changed files with 23 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class TransientCache {
$this->wp->setTransient($key, $items);
}
private function getItems(string $key): array {
public function getItems(string $key): array {
return $this->wp->getTransient($key) ?: [];
}
}