Add conditional output of optional attribute for cache_peer to template