Solves XCache serialize/unserialize issue #2330

Solves issue #2330