Fix view denormalization by checking for a real cache.
Merge pull request #1901 from vanilla/feature/viewsfix

Fix view denormalization by checking for a real cache.