Update Cache.class.php

Make cache file automatically