Skip to content
Snippets Groups Projects
Commit b3d8e2fc authored by Robert Speicher's avatar Robert Speicher
Browse files

Merge branch 'fix_cache_expiration_in_repository' into 'master'

Fix redundant cache expiration in Repository

Closes #30146

See merge request !10575

Former-commit-id: 100f4370
parents f1eed60c 18860af7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -407,8 +407,6 @@ class Repository
# Runs code after a repository has been forked/imported.
def after_import
expire_content_cache
expire_tags_cache
expire_branches_cache
end
 
# Runs code after a new commit has been pushed.
Loading
Loading
---
title: Fix redundant cache expiration in Repository
merge_request: 10575
author: blackst0ne
Loading
Loading
@@ -1283,8 +1283,6 @@ describe Repository, models: true do
describe '#after_import' do
it 'flushes and builds the cache' do
expect(repository).to receive(:expire_content_cache)
expect(repository).to receive(:expire_tags_cache)
expect(repository).to receive(:expire_branches_cache)
 
repository.after_import
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment