Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
9932c908
Unverified
Commit
9932c908
authored
Nov 20, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Checking if the tags() method exists when flushing
parent
2541e53f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
BaseCacheDecorator.php
Modules/Core/Repositories/Cache/BaseCacheDecorator.php
+7
-1
changelog.yml
Modules/Core/changelog.yml
+1
-0
No files found.
Modules/Core/Repositories/Cache/BaseCacheDecorator.php
View file @
9932c908
...
...
@@ -163,7 +163,13 @@ abstract class BaseCacheDecorator implements BaseRepository
*/
public
function
clearCache
()
{
return
$this
->
cache
->
tags
(
$this
->
entityName
)
->
flush
();
$store
=
$this
->
cache
;
if
(
method_exists
(
$this
->
cache
->
getStore
(),
'tags'
))
{
$store
=
$store
->
tags
(
$this
->
entityName
);
}
return
$store
->
flush
();
}
/**
...
...
Modules/Core/changelog.yml
View file @
9932c908
...
...
@@ -4,6 +4,7 @@ versions:
changed
:
-
Define the warning callback on the SetAppKey
-
Cleaner <code>BaseCacheDecorator</code> class with a new <code>remember</code> function
-
Checking if the tags() method exists when flushing
"
3.3.0"
:
changed
:
-
Updating vue-simple-mde to avoid 'marked' warning with vuejs 2.5
...
...
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