caches: use struct.pack/unpack to fix issue6354, other fixes

Merge request reports

Loading