Added caching for ajax template request