add (backported) make_template_fragment_key

for invalidating template fragment caches