Fix cache not flushed after comment delete by admin
This commit is contained in:
@@ -29,6 +29,8 @@ class AdminCommentSearch extends Component
|
|||||||
{
|
{
|
||||||
$comment = Comment::where('id', (int) $commentId)->firstOrFail();
|
$comment = Comment::where('id', (int) $commentId)->firstOrFail();
|
||||||
$comment->delete();
|
$comment->delete();
|
||||||
|
|
||||||
|
cache()->flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render()
|
public function render()
|
||||||
|
|||||||
Reference in New Issue
Block a user