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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
2535834f
Commit
2535834f
authored
Jun 01, 2018
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReactiveCaching#clear_reactive_cache! should clear the not keep the cache alive
parent
4b0ff7c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
app/models/concerns/reactive_caching.rb
app/models/concerns/reactive_caching.rb
+1
-0
changelogs/unreleased/reactive-caching-alive-bug.yml
changelogs/unreleased/reactive-caching-alive-bug.yml
+6
-0
spec/models/concerns/reactive_caching_spec.rb
spec/models/concerns/reactive_caching_spec.rb
+1
-0
No files found.
app/models/concerns/reactive_caching.rb
View file @
2535834f
...
...
@@ -74,6 +74,7 @@ module ReactiveCaching
def
clear_reactive_cache!
(
*
args
)
Rails
.
cache
.
delete
(
full_reactive_cache_key
(
*
args
))
Rails
.
cache
.
delete
(
alive_reactive_cache_key
(
*
args
))
end
def
exclusively_update_reactive_cache!
(
*
args
)
...
...
changelogs/unreleased/reactive-caching-alive-bug.yml
0 → 100644
View file @
2535834f
---
title
:
Updates ReactiveCaching clear_reactive_caching method to clear both data and
alive caching
merge_request
:
19311
author
:
type
:
fixed
spec/models/concerns/reactive_caching_spec.rb
View file @
2535834f
...
...
@@ -94,6 +94,7 @@ describe ReactiveCaching, :use_clean_rails_memory_store_caching do
end
it
{
expect
(
instance
.
result
).
to
be_nil
}
it
{
expect
(
reactive_cache_alive?
(
instance
)).
to
be_falsy
}
end
describe
'#exclusively_update_reactive_cache!'
do
...
...
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