From e8f83dcba34ce7ea22d63b0e5f0b57b9dd49e853 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 9 Nov 2015 20:41:59 -0500 Subject: [PATCH] Revert "Temporarily disable template caching" This reverts commit 4d1757ce64fd9627cbc022c1533cde3f25ecdbb1. --- lib/ansible/template/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/template/__init__.py b/lib/ansible/template/__init__.py index 3eb085b2bba..709ee03ef8d 100644 --- a/lib/ansible/template/__init__.py +++ b/lib/ansible/template/__init__.py @@ -332,8 +332,8 @@ class Templar: # we only cache in the case where we have a single variable # name, to make sure we're not putting things which may otherwise # be dynamic in the cache (filters, lookups, etc.) - #if var_name not in (None, 'item'): - # self._cached_result[sha1_hash] = result + if var_name not in (None, 'item'): + self._cached_result[sha1_hash] = result return result