Skip to content

Commit

Permalink
Fix tag cache clearing when using Redis (#25744)
Browse files Browse the repository at this point in the history
  • Loading branch information
X-Coder264 authored and taylorotwell committed Sep 23, 2018
1 parent 2696362 commit bb6da4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Cache/RedisTaggedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,14 @@ public function forever($key, $value)
/**
* Remove all items from the cache.
*
* @return void
* @return bool
*/
public function flush()
{
$this->deleteForeverKeys();
$this->deleteStandardKeys();

parent::flush();
return parent::flush();
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/Illuminate/Cache/TaggedCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ public function decrement($key, $value = 1)
/**
* Remove all items from the cache.
*
* @return void
* @return bool
*/
public function flush()
{
$this->tags->reset();

return true;
}

/**
Expand Down

0 comments on commit bb6da4e

Please sign in to comment.