diff --git a/openbook_insights/schema/queries.py b/openbook_insights/schema/queries.py index 25d763dd09b1d649c6430e96c429b8cfb23a8bd1..96c97ef2364b439e97a26f7d3437be378b0e89d1 100644 --- a/openbook_insights/schema/queries.py +++ b/openbook_insights/schema/queries.py @@ -81,15 +81,7 @@ class Query: limit, ) - # Calculate seconds until next 10am - now = timezone.now() - next_10am = now.replace(hour=10, minute=0, second=0, microsecond=0) - if now.hour >= 10: - next_10am += timedelta(days=1) - cache_ttl = int((next_10am - now).total_seconds()) - - # Cache until next 10am - cache.set(cache_key, paged_insights, cache_ttl) + cache.set(cache_key, paged_insights) return paged_insights @strawberry_django.field()