Cast cache as a boolean
Merge pull request #9 from baloo/patch-1

Cast cache as a boolean