11-25-2019, 04:15 PM
Hi,
I work on my project on local using `php spark` and today I publish my project on server and here is a problem. Because time to load site on the server is several times longer than local. Can anyone know where is a problem?
Starter controller for CI4:
Local:
PHP version:
Server:
PHP version:
I work on my project on local using `php spark` and today I publish my project on server and here is a problem. Because time to load site on the server is several times longer than local. Can anyone know where is a problem?
Starter controller for CI4:
Local:
Code:
Bootstrap - 1.02 ms
Routing - 0.20 ms
Controller - 0.09 ms
Controller Constructor - 0.04 ms
View: welcome_message.php - 0.02 ms
PHP version:
Code:
PHP 7.2.24-0ubuntu0.18.04.1 (cli) (built: Oct 28 2019 12:07:07) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.24-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies
Server:
Code:
Bootstrap - 204.82 ms
Routing - 92.71 ms
Controller - 1.87 ms
Controller Constructor - 1.26 ms
View: welcome_message.php - 0.54 ms
PHP version:
Code:
PHP 7.2.24 (cli) (built: Oct 25 2019 15:21:24) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with the ionCube PHP Loader v10.3.9, Copyright (c) 2002-2019, by ionCube Ltd.
with Zend OPcache v7.2.24, Copyright (c) 1999-2018, by Zend Technologies