Post-commit hook cache fixes

The cache as currently implemented doesn't work at all. This PR  fixes it. Tested for HTTPS URLs only, on an instance with 6-7k SVN-based jobs with one unique URL per project. Commit notification now takes less than 4 seconds instead of 40+ minutes.