Update IndexController and CacheCommand; add missing DateInterval and DateTime imports, and change info message to white for better visibility
This commit is contained in:
@@ -16,6 +16,8 @@ declare(strict_types=1);
|
|||||||
|
|
||||||
namespace App\Controller;
|
namespace App\Controller;
|
||||||
|
|
||||||
|
use DateInterval;
|
||||||
|
use DateTime;
|
||||||
use flight\Engine;
|
use flight\Engine;
|
||||||
use flight\Session;
|
use flight\Session;
|
||||||
use flight\database\SimplePdo;
|
use flight\database\SimplePdo;
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ class CacheCommand extends AbstractBaseCommand {
|
|||||||
$cache = new Cache($app);
|
$cache = new Cache($app);
|
||||||
$cache->set_asset($asset);
|
$cache->set_asset($asset);
|
||||||
$ares = $cache->Make_Cache();
|
$ares = $cache->Make_Cache();
|
||||||
if (is_array($ares)) $io->info("Processed of {$ares['user_count']} user.", true);
|
if (is_array($ares)) $io->white("Processed of {$ares['user_count']} user.", true);
|
||||||
$io->ok("Done.", true);
|
$io->ok("Done.", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user