Fixed file_get_contents warnings in cache