Add method to clear element contents template cache

Useful for the case where the template has changed, invalidating
the cache.