Fix cache configuration for better Doctrine compatibility. by demiankatz · Pull Request #806 · doctrine/DoctrineModule

The default Laminas cache key pattern is incompatible with Doctrine's basic assumptions. This PR loosens things up a bit. It might not be perfect -- I'm open to suggestions for cleaner regexes -- but it at least works with the current DoctrineORMModule test suite.

Additionally, the old Doctrine file system cache adapter included automatic serialization, but the Laminas file system cache adapter does not. This adjusts the configuration to fix that inconsistency and ensure compatible behavior.

See doctrine/DoctrineORMModule#734 for related discussion.