mirror of
https://github.com/Hopiu/django-cachalot.git
synced 2026-05-19 18:01:51 +00:00
Tiny optimisation.
This commit is contained in:
parent
42fc5d2f0e
commit
f05b143e4c
1 changed files with 2 additions and 2 deletions
|
|
@ -19,10 +19,10 @@ class UncachableQuery(Exception):
|
|||
pass
|
||||
|
||||
|
||||
CACHABLE_PARAM_TYPES = (
|
||||
CACHABLE_PARAM_TYPES = frozenset((
|
||||
bool, int, binary_type, text_type, type(None),
|
||||
datetime.date, datetime.time, datetime.datetime, datetime.timedelta
|
||||
)
|
||||
))
|
||||
|
||||
def get_query_cache_key(compiler):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue