Commit afec0c03 authored by Michal Čihař's avatar Michal Čihař

Invalidate checks cache on translation update

We might be more clever on this and do the cleanup conditionally, but
for now this is safe solution as the checks might become stale.

This completes fix for issue #233
parent b18c3b8b
......@@ -535,6 +535,10 @@ class Translation(models.Model):
# Update revision and stats
self.update_stats()
# Cleanup checks cache if there were some deleted units
if len(deleted_checksums) > 0:
self.invalidate_cache()
# Store change entry
if request is None:
user = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment