diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-02-23 12:02:59 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-02-23 12:02:59 +0100 |
commit | ff28a7cc3687485ee138d4616a56ba1548a03e7c (patch) | |
tree | d2a478e956b41ea0291b5856bd68e8663a74a46d /app/workers | |
parent | 884094a77e19b225345b028e64a5355747e716dd (diff) | |
download | gitlab-ce-ff28a7cc3687485ee138d4616a56ba1548a03e7c.tar.gz |
Moved cache expiration code to Repository hooks
This keeps all the cache expiration code in a single file/class instead
of spreading it all across the codebase.
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/repository_fork_worker.rb | 2 | ||||
-rw-r--r-- | app/workers/repository_import_worker.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/workers/repository_fork_worker.rb b/app/workers/repository_fork_worker.rb index 2572b9d6d98..21d311579e3 100644 --- a/app/workers/repository_fork_worker.rb +++ b/app/workers/repository_fork_worker.rb @@ -27,7 +27,7 @@ class RepositoryForkWorker return end - project.repository.expire_emptiness_caches + project.repository.after_import project.import_finish end end diff --git a/app/workers/repository_import_worker.rb b/app/workers/repository_import_worker.rb index 0b6f746e118..2937493c614 100644 --- a/app/workers/repository_import_worker.rb +++ b/app/workers/repository_import_worker.rb @@ -18,7 +18,7 @@ class RepositoryImportWorker return end - project.repository.expire_emptiness_caches + project.repository.after_import project.import_finish end end |