Update upload/system/library/cache.php

close($handle); changed to fclose($handle);