Update cache.php

Hook request.
Merge pull request #99 from Allineer/patch-5

Added hook to cache.php