fixes #5130 - Added warning when apipie cache is missing or outdated
Fixed rake to foreman-rake when in production