Update cache.py
Merge pull request #448 from ilyaran/patch-1

Update cache.py