cached-commits: don't update cache on summary page.

- Invalidation logic does that and we don't need to specially do this anymore
This commit is contained in:
Daniel Dourvaris 2019-12-27 14:15:23 +01:00
parent f942ce2001
commit cb48113259

View file

@ -128,12 +128,7 @@ class RepoSummaryView(RepoAppView):
# Prepare the clone URL
self._prepare_and_set_clone_url(c)
# update every 5 min
if self.db_repo.last_commit_cache_update_diff > 60 * 5:
self.db_repo.update_commit_cache()
# If enabled, get statistics data
c.show_stats = bool(self.db_repo.enable_statistics)
stats = Session().query(Statistics) \