Fix bug: viewcache clearing not happening anymore