From 981cd8726d296e941a6a1e913ea7abf2594ada48 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 7 Mar 2018 09:14:05 +0100 Subject: [PATCH] Remove holes in cache index keys - makes the serialized representation shorter --- program/lib/Roundcube/rcube_cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/Roundcube/rcube_cache.php b/program/lib/Roundcube/rcube_cache.php index a02493b8c02..895b76fb6f6 100644 --- a/program/lib/Roundcube/rcube_cache.php +++ b/program/lib/Roundcube/rcube_cache.php @@ -405,7 +405,7 @@ protected function write_index() } } - $data = serialize($this->index); + $data = serialize(array_values($this->index)); $this->add_item($this->ikey(), $data); }