feat(import): try to be more aggressive on cache invalidation

This commit is contained in:
Herculino Trotta
2025-01-23 21:12:13 -03:00
parent 928ad33111
commit 38379ab2b1
2 changed files with 4 additions and 3 deletions

View File

@@ -542,6 +542,4 @@ class ImportService:
self.import_run.finished_at = timezone.now()
self.import_run.save(update_fields=["finished_at"])
if self.import_run.successful_rows >= 1:
cachalot.api.invalidate()
cachalot.api.invalidate()