AsgardCms/Setting

View on GitHub
Events/Handlers/ClearSettingsCache.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php namespace Modules\Setting\Events\Handlers;

use Illuminate\Contracts\Cache\Repository;

class ClearSettingsCache
{
    /**
     * @var Repository
     */
    private $cache;

    public function __construct(Repository $cache)
    {
        $this->cache = $cache;
    }

    public function handle()
    {
        $this->cache->tags('setting.settings')->flush();
    }
}