We must not cache this directory. If it is cached, this might cause
Composer to (re-)install dependency version that are not valid for
the current PHP version, which possibly might break the build.
It might happen, when starting the fuctional test that the database service container is not ready yet.
This patch provides an extra timeout to wait for the service to make sure the test does not fail because of missing database.