class Command(BaseCommand):
def handle(self, *args, **kwargs):
cache = caches["serialized_datasets"]
if isinstance(cache, DummyCache):
self.stderr.write("The serialized_datasets cache is not enabled")
return
cache.clear()
self.stdout.write("Cleared serialized_datasets cache")