diff --git a/posthog/test/base.py b/posthog/test/base.py index 8b66387037a7c..5457bbe4056bc 100644 --- a/posthog/test/base.py +++ b/posthog/test/base.py @@ -12,6 +12,7 @@ import pytest import sqlparse from django.apps import apps +from django.core.cache import cache from django.db import connection, connections from django.db.migrations.executor import MigrationExecutor from django.test import TestCase, TransactionTestCase, override_settings @@ -232,6 +233,7 @@ class APIBaseTest(TestMixin, ErrorResponsesMixin, DRFTestCase): def setUp(self): super().setUp() + cache.clear() TEST_clear_cloud_cache(self.initial_cloud_mode) TEST_clear_instance_license_cache()