Show More
@@ -12,9 +12,11 b' class Command(BaseCommand):' | |||
|
12 | 12 | @transaction.atomic |
|
13 | 13 | def handle(self, *args, **options): |
|
14 | 14 | count = 0 |
|
15 |
for global_id in GlobalId.objects. |
|
|
15 | for global_id in GlobalId.objects.exclude(content__isnull=True).exclude( | |
|
16 | content=''): | |
|
16 | 17 | if global_id.is_local() and global_id.content is not None: |
|
17 | 18 | global_id.content = None |
|
18 | 19 | global_id.save() |
|
20 | global_id.signature_set.all().delete() | |
|
19 | 21 | count += 1 |
|
20 | 22 | print('Invalidated {} caches.'.format(count)) |
General Comments 0
You need to be logged in to leave comments.
Login now