Evaluate view_cache_dependencies at the instance level

A poorly considered refactoring resulted in the view_cache_dependencies being evaluated at the class level, instead of the instance level. This patch fixes that.