Update IndexController and CacheCommand; add missing DateInterval and DateTime imports, and change info message to white for better visibility

This commit is contained in:
2026-11-03 08:45:57 +07:00
parent d5b44789fe
commit 0db288c404
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -16,6 +16,8 @@ declare(strict_types=1);
namespace App\Controller;
use DateInterval;
use DateTime;
use flight\Engine;
use flight\Session;
use flight\database\SimplePdo;
+1 -1
View File
@@ -37,7 +37,7 @@ class CacheCommand extends AbstractBaseCommand {
$cache = new Cache($app);
$cache->set_asset($asset);
$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);
}