correctly clear view cache