From cb6cf4515650f40e770985650e59acf6897a4bd4 Mon Sep 17 00:00:00 2001 From: Samuel Georges Date: Sat, 16 Apr 2016 08:10:14 +1000 Subject: [PATCH] Fixes issue where Cache helper does not flush framework --- modules/system/ServiceProvider.php | 2 +- modules/system/helpers/Cache.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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();