making the cachekey an object var

...so caching can be killed inside a template.

This is a temporary hack. A better hack that allows more sophisticated caching is needed.