Track a global view cache version

Allow setting a global hook function that will return a cache version to put in the caching key.