Ways to Improve Extremely Slow Codeigniter Website Ways to Improve Extremely Slow Codeigniter Website codeigniter codeigniter

Ways to Improve Extremely Slow Codeigniter Website


improve the performance of codeigniter

Performance depends slightly on framework, CI itself is one of the fastest.

Your project performance mostly depends on your code, how you use PHP, how you create queries and maintain JS code.

Short answer to your question:

  1. CI active record class is garbage, use classic queries / alternative PDO.
  2. Use advantage of condition-loading helpers/modules
  3. Don't use security class functions unless it's necessary
  4. Study config files, there is much you can disable to speed up.

This can help, may not, best way to avoid performance problems is to study how languages work, for example you can get valuable performance info about PHP here.


You can try this:
1. Compress HTML output, like this
2. Cache functions

$this->output->cache(60); // Will expire in 60 minutes


3. Enable Gzip Compression

$config['compress_output'] = TRUE;