Skip to content

Commit

Permalink
Remove holes in cache index keys - makes the serialized representatio…
Browse files Browse the repository at this point in the history
…n shorter
  • Loading branch information
alecpl committed Mar 7, 2018
1 parent 866bf95 commit 981cd87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion program/lib/Roundcube/rcube_cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ protected function write_index()
}
}

$data = serialize($this->index);
$data = serialize(array_values($this->index));

$this->add_item($this->ikey(), $data);
}
Expand Down

0 comments on commit 981cd87

Please sign in to comment.