fixed some cacheTemlate edgecases involving string deliniation, exported functions, multiline strings, etc.