Fixes issue where Cache helper does not flush framework
This commit is contained in:
parent
b534006f35
commit
cb6cf45156
|
|
@ -207,7 +207,7 @@ class ServiceProvider extends ModuleServiceProvider
|
|||
* Add CMS based cache clearing to native command
|
||||
*/
|
||||
Event::listen('cache:cleared', function() {
|
||||
\System\Helpers\Cache::clear();
|
||||
\System\Helpers\Cache::clearInternal();
|
||||
});
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
use App;
|
||||
use File;
|
||||
use Cache as CacheFacade;
|
||||
use Config;
|
||||
|
||||
class Cache
|
||||
|
|
@ -12,6 +13,12 @@ class Cache
|
|||
* Execute the console command.
|
||||
*/
|
||||
public static function clear()
|
||||
{
|
||||
CacheFacade::flush();
|
||||
self::clearInternal();
|
||||
}
|
||||
|
||||
public static function clearInternal()
|
||||
{
|
||||
$instance = self::instance();
|
||||
$instance->clearCombiner();
|
||||
|
|
|
|||
Loading…
Reference in New Issue