Adds caching support into Template