Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
raghavFam committed Dec 23, 2024
1 parent dc60642 commit d58510e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cacheops/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@

from django.utils.encoding import force_str
from django.core.exceptions import ImproperlyConfigured, EmptyResultSet
from django.db import DEFAULT_DB_ALIAS, connections, models
from django.db import DEFAULT_DB_ALIAS, models
from django.db.models.manager import BaseManager
from django.db.models.query import MAX_GET_RESULTS
try:
from django.db.models.query import MAX_GET_RESULTS
from django.db import connections
except ImportError:
MAX_GET_RESULTS = None
from django.db.models.signals import pre_save, post_save, post_delete, m2m_changed
from django.db.transaction import atomic

Expand All @@ -28,7 +33,6 @@

_local_get_cache = {}


def cached_as(*samples, timeout=None, extra=None, lock=None, keep_fresh=False):
"""
Caches results of a function and invalidates them same way as given queryset(s).
Expand Down

0 comments on commit d58510e

Please sign in to comment.