fix template caching

Since the introduction of an expiry date, the effective cache key got
shorter. This fixes it.
fix error when creating a new episode

fixes #479
close #480
:shipit: release 1.10.19