Skip to content

Commit ba7aa73

Browse files
authored
Support taggeable store flushed cache events (#55223)
1 parent 0605258 commit ba7aa73

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Illuminate/Cache/TaggedCache.php

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace Illuminate\Cache;
44

5+
use Illuminate\Cache\Events\CacheFlushed;
6+
use Illuminate\Cache\Events\CacheFlushing;
57
use Illuminate\Contracts\Cache\Store;
68

79
class TaggedCache extends Repository
@@ -77,8 +79,12 @@ public function decrement($key, $value = 1)
7779
*/
7880
public function flush()
7981
{
82+
parent::event(new CacheFlushing($this->getName()));
83+
8084
$this->tags->reset();
8185

86+
parent::event(new CacheFlushed($this->getName()));
87+
8288
return true;
8389
}
8490

0 commit comments

Comments
 (0)