Also send explicit cache hooks when calling file_put_contents with a resource