Remove document model cache invalidation

The cache invalidation is now handled by the file caching app.

Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
Roberto Rosario
2019-07-26 01:33:41 -04:00
parent c2e99e6efb
commit f920dffc01
4 changed files with 2 additions and 17 deletions

View File

@@ -25,10 +25,6 @@ class DocumentManager(models.Manager):
self.model, using=self._db
).filter(in_trash=False).filter(is_stub=False)
def invalidate_cache(self):
for document in self.model.objects.all():
document.invalidate_cache()
class DocumentPageCachedImage(models.Manager):
def get_by_natural_key(self, filename, document_page_natural_key):