BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
reactive_caching.rb
app/models/concerns/reactive_caching.rb
+1
-0
reactive-caching-alive-bug.yml
changelogs/unreleased/reactive-caching-alive-bug.yml
+6
-0
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