mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-12 06:33:11 +00:00
Removes some unused code.
This commit is contained in:
parent
f4d8d9989c
commit
6aebbbb64a
1 changed files with 1 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue