Update Cache.php

fix, foreach() error Warning: Invalid argument supplied for foreach()