Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
9f8ae20f
Commit
9f8ae20f
authored
Apr 10, 2017
by
blackst0ne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix redundant cache expiration in Repository
parent
3d1cade1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/repository.rb
app/models/repository.rb
+0
-2
changelogs/unreleased/fix_cache_expiration_in_repository.yml
changelogs/unreleased/fix_cache_expiration_in_repository.yml
+4
-0
spec/models/repository_spec.rb
spec/models/repository_spec.rb
+0
-2
No files found.
app/models/repository.rb
View file @
9f8ae20f
...
@@ -407,8 +407,6 @@ class Repository
...
@@ -407,8 +407,6 @@ class Repository
# Runs code after a repository has been forked/imported.
# Runs code after a repository has been forked/imported.
def
after_import
def
after_import
expire_content_cache
expire_content_cache
expire_tags_cache
expire_branches_cache
end
end
# Runs code after a new commit has been pushed.
# Runs code after a new commit has been pushed.
...
...
changelogs/unreleased/fix_cache_expiration_in_repository.yml
0 → 100644
View file @
9f8ae20f
---
title
:
Fix redundant cache expiration in Repository
merge_request
:
10575
author
:
blackst0ne
spec/models/repository_spec.rb
View file @
9f8ae20f
...
@@ -1283,8 +1283,6 @@ describe Repository, models: true do
...
@@ -1283,8 +1283,6 @@ describe Repository, models: true do
describe
'#after_import'
do
describe
'#after_import'
do
it
'flushes and builds the cache'
do
it
'flushes and builds the cache'
do
expect
(
repository
).
to
receive
(
:expire_content_cache
)
expect
(
repository
).
to
receive
(
:expire_content_cache
)
expect
(
repository
).
to
receive
(
:expire_tags_cache
)
expect
(
repository
).
to
receive
(
:expire_branches_cache
)
repository
.
after_import
repository
.
after_import
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment