diff --git a/modules/system/ServiceProvider.php b/modules/system/ServiceProvider.php index eefbda140..80ebd7b89 100644 --- a/modules/system/ServiceProvider.php +++ b/modules/system/ServiceProvider.php @@ -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(); }); /* diff --git a/modules/system/helpers/Cache.php b/modules/system/helpers/Cache.php index 139cced1b..d4b6170da 100644 --- a/modules/system/helpers/Cache.php +++ b/modules/system/helpers/Cache.php @@ -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();