mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 05:58:58 +01:00
Add warning
This commit is contained in:
parent
399cafe763
commit
177dfe39e8
@ -34,6 +34,6 @@ final class Ipc extends SettingsAbstract
|
|||||||
*/
|
*/
|
||||||
public function getSlow(): bool
|
public function getSlow(): bool
|
||||||
{
|
{
|
||||||
return Magic::$isIpcWorker;
|
return Magic::$isIpcWorker || \PHP_OS_FAMILY === 'Windows';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,10 @@ if (class_exists('\\danog\\MadelineProto\\Db\\NullCache\\MysqlArray')) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (\PHP_OS_FAMILY === 'Windows') {
|
||||||
|
echo "WARNING: MadelineProto runs around 10x slower on windows due to OS and PHP limitations. Make sure to deploy MadelineProto in production only on Linux or Mac OS machines for maximum performance.".PHP_EOL;
|
||||||
|
}
|
||||||
|
|
||||||
use danog\AsyncOrm\Internal\Containers\CacheContainer;
|
use danog\AsyncOrm\Internal\Containers\CacheContainer;
|
||||||
use danog\AsyncOrm\Internal\Driver\MysqlArray;
|
use danog\AsyncOrm\Internal\Driver\MysqlArray;
|
||||||
use danog\AsyncOrm\Internal\Driver\PostgresArray;
|
use danog\AsyncOrm\Internal\Driver\PostgresArray;
|
||||||
|
Loading…
Reference in New Issue
Block a user