From 6aebbbb64af737a8bf0e792bfdc6a1a0b5d28b55 Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Sun, 5 Oct 2014 03:20:29 +0200 Subject: [PATCH] Removes some unused code. --- cachalot/monkey_patch.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cachalot/monkey_patch.py b/cachalot/monkey_patch.py index f46b715..05bed32 100644 --- a/cachalot/monkey_patch.py +++ b/cachalot/monkey_patch.py @@ -67,9 +67,7 @@ def _invalidate_tables(cache, query): _invalidate_tables_cache_keys(cache, tables_cache_keys) -def clear_cache(cache=None): - if cache is None: - cache = get_cache() +def clear_cache(cache): tables = connection.introspection.table_names() tables_cache_keys = [_get_table_cache_key(t) for t in tables] _invalidate_tables_cache_keys(cache, tables_cache_keys)