/** Initialization * @return void */ public static function init() { if (!self::$ready) { self::set_env(); if (self::check_cache()) { self::load_cache(); } else { self::reload(); try { $cache = cfg('cache', 'settings'); } catch (\System\Error $e) { $cache = false; } if ($cache) { self::cache(); } } self::$ready = true; } }