added some OnDocFormSave handling to delete a cache file when a resource is saved