Add template-specific rabl cache prefixes to prevent cache collisions
Fixes #4304 - RABL cache collision for variants

This uses the template path to ensures unique cache keys and guarantees no collisions. Could have also used a string, this is a more generic solution.