mirror of
https://github.com/getgrav/grav.git
synced 2026-07-15 19:32:33 +02:00
Oops, fixed bug #3160
This commit is contained in:
@@ -12,7 +12,6 @@ namespace Grav\Console\Cli;
|
||||
use Grav\Common\Cache;
|
||||
use Grav\Console\GravCommand;
|
||||
use Symfony\Component\Console\Input\InputOption;
|
||||
use function is_callable;
|
||||
|
||||
/**
|
||||
* Class ClearCacheCommand
|
||||
@@ -47,7 +46,7 @@ class ClearCacheCommand extends GravCommand
|
||||
{
|
||||
// Old versions of Grav called this command after grav upgrade.
|
||||
// We need make this command to work with older GravCommand instance:
|
||||
if (!is_callable($this, 'initializePlugins')) {
|
||||
if (!method_exists($this, 'initializePlugins')) {
|
||||
Cache::clearCache('all');
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user