Fixes issue #219

When deleting a view, remove it from the view cache if it is stored there.