clear cache after uploading file programmatically