diff options
author | Peter Marko <peter.marko@siemens.com> | 2019-02-14 01:38:11 +0300 |
---|---|---|
committer | Peter Marko <peter.marko@siemens.com> | 2019-05-29 17:08:25 +0300 |
commit | 40490cc4922fedbf4512109429cdc2c5aed65ded (patch) | |
tree | bb2be4aa53b223c2031c3accd4b5398ab90b7598 /app/workers/project_cache_worker.rb | |
parent | 106f449d6938280452c52e1ee86461e5ceed685e (diff) |
Add wiki size to project statistics
Diffstat (limited to 'app/workers/project_cache_worker.rb')
-rw-r--r-- | app/workers/project_cache_worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/project_cache_worker.rb b/app/workers/project_cache_worker.rb index b2e0701008a..4e8ea903139 100644 --- a/app/workers/project_cache_worker.rb +++ b/app/workers/project_cache_worker.rb @@ -16,10 +16,12 @@ class ProjectCacheWorker def perform(project_id, files = [], statistics = []) project = Project.find_by(id: project_id) - return unless project && project.repository.exists? + return unless project update_statistics(project, statistics) + return unless project.repository.exists? + project.repository.refresh_method_caches(files.map(&:to_sym)) project.cleanup |