[front-end] refactor template caching - use  cache property