bugfix: invalidate cache correctly after rename and delete