fixed bug in Cache.php