$now ) { return $next; } update_option( 'altlumen_next_request_at', $now + (int) ceil( 60 / max( 1, $rate ) ), false ); return $now; } finally { $lock->release(); } } /** * Next. * * @return int */ public static function next(): int { return max( Clock::now(), (int) get_option( 'altlumen_next_request_at', 0 ) ); } }