Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 3 is too slow
#1

(This post was last modified: 07-05-2023, 02:33 AM by venkatc.)

I have installed CodeIgniter 3,
My server configurations are,
  • PHP 7.4
  • Ubuntu 22
  • Appache2

 The application is loading very slow. When i print something in the index.php its very fast not in the case of actual app.
It takes too long time to load the first file.
It happens for every click on the page. It takes 2-3 seconds from a click til page is loaded.
We have tried installing on another ubuntu server, but the issue remains.
Not sure how we can solve this.


Thanks for the help in advance.
Reply
#2

Use your Web Broser's Developer Tools Network Tab to see whats slowing it down.

Turn on CodeIgniter's DebugBar it will also show you timings.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

I will add some additional information.
The issue is tfb. It takes too long time to load the first file.
It happens for every click on the page. It takes 2-3 seconds from a click til page is loaded.
We have tried installing on another ubuntu server, but the issue remains.
Not sure how we can solve this.
Reply
#4

Hey, did u fixed this? I have same issue and nothing cant fix that, any ideas?
Reply
#5

Hello,
Try to use memcached instead of redis
apt install memcached
apt install php7.0-memcached (change 7.0 with your php version)
then go to /application/config/config.php and chage this lines
$config['sess_driver'] = 'redis';
$config['sess_save_path'] = 'localhost';
with this
$config['sess_driver'] = 'memcached';
$config['sess_save_path'] = 'localhost:11211';

this config work with me
Reply




Theme © iAndrew 2016 - Forum software by © MyBB