From a358fc18a95262fea557f4e641e967d48c7a1e29 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Tue, 9 Dec 2014 01:35:42 +0100 Subject: [PATCH] Removes a cache.clear() accidentally introduced. --- cachalot/monkey_patch.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cachalot/monkey_patch.py b/cachalot/monkey_patch.py index d11ad341a..99471d67a 100644 --- a/cachalot/monkey_patch.py +++ b/cachalot/monkey_patch.py @@ -56,7 +56,6 @@ def _get_result_or_execute_query(execute_query_func, cache_key, new_table_cache_keys = frozenset(table_cache_keys) - frozenset(data) if new_table_cache_keys: - cache.clear() for table_cache_key in new_table_cache_keys: cache.add(table_cache_key, time(), None) elif cache_key in data: