Skip to content

Commit

Permalink
Removes a cache.clear() accidentally introduced.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Dec 9, 2014
1 parent cc6e836 commit a358fc1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cachalot/monkey_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a358fc1

Please sign in to comment.