Fix #792
Merge pull request #795 from mlocati/fix-zf2-cache

Fix #792