mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 07:35:34 +08:00
replace deprecated functions
This commit is contained in:
@@ -83,9 +83,9 @@ class EventManager
|
||||
}
|
||||
$conf = ZMConfig::get('global', 'worker_cache') ?? ['worker' => 0];
|
||||
if (server()->worker_id == $conf['worker']) {
|
||||
zm_timer_tick(ZMConfig::get('global', 'light_cache')['auto_save_interval'] * 1000, function () {
|
||||
run_repeating(static function () {
|
||||
LightCache::savePersistence();
|
||||
});
|
||||
}, ZMConfig::get('global', 'light_cache')['auto_save_interval'] * 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user