Added missing cache invalidation to ResourceAccess#beforeDeletion.