Add DI container caching
What does this MR do?
For performance reasons we need to cache the DI configuration (as per https://symfony.com/doc/current/components/dependency_injection/compilation.html). We disable it in development (or if the cache does not exist), and write it on compilation (if not in dev).
How confident are you it won't break things if deployed?
Should be ok! Hopefully,
tmp/ is writable by php...
Links to related issues
- added a test, or explain why one is not needed/possible...
- no unrelated changes
- asked someone for a code review
- joined #foodsharing-beta channel at https://slackin.yunity.org
- added an entry to CHANGELOG.md (description, merge request link, username(s))