Guessing whether a service account can read a file wastes time. I let that account run the test itself.
sudo -u www-data test -r /srv/site/config.php && echo can read || echo blocked
sudo -u www-data test -w /srv/site/cache && echo can write
test -r, -w and -x ask the kernel for the real answer, for that user, including groups and ACLs. Combine it with namei -l to find the folder in the way. It works for accounts without a login shell, because sudo does not start one for a single command.
Further reading: sudo manual page