changed the Cache to use fread instead of file_get_contents, due to closing problems