Fixes issue where Cache helper does not flush framework

This commit is contained in:
Samuel Georges 2016-04-16 08:10:14 +10:00
parent b534006f35
commit cb6cf45156
2 changed files with 8 additions and 1 deletions

View File

@ -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();
});
/*

View File

@ -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();