From dec03b69ba14d58fefc52d2308d719a1c81542dc Mon Sep 17 00:00:00 2001 From: "vladimir.kaprielov" Date: Thu, 27 Oct 2022 19:19:25 +0300 Subject: [PATCH] Revert "Fix: Prevent restore cache on closing connection (#548)" This reverts commit 1a0a86e73257c22d537f20df0e8b32b8a6760974. --- src/Connection.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Connection.php b/src/Connection.php index 538080e9..d562ab6a 100644 --- a/src/Connection.php +++ b/src/Connection.php @@ -50,11 +50,9 @@ public function expunge(): bool public function close(int $flag = 0): bool { - $stream = $this->resource->getStream(); - $this->resource->clearLastMailboxUsedCache(); - return \imap_close($stream, $flag); + return \imap_close($this->resource->getStream(), $flag); } public function getQuota(string $root = 'INBOX'): array