Update cache.php

Use the proper system path, rather than the dirname(__FILE__)
Merge pull request #1767 from JAY6390/patch-3

Update cache.php