Noticing a long delay in server processing time. The application environment is:
Apache2
Ubuntu 10.04
PHP 5.3
Codeigniter 2.1
first call after a time causes a significant delay
codeigniter profiler is enabled and gives this feedback
Loading Time: Base Classes 2.7587
Controller Execution Time ( Home / Index ) 7.2188
Total Execution Time 9.9777
There are only 2 database active record queries both taking less than a 10th of a second.
I am not using any kind of cache.
However the same page on refreshing yields this by the codeigniter profiler
Loading Time: Base Classes 0.0074
Controller Execution Time ( Home / Index ) 0.1471
Total Execution Time 0.1545
From +9 seconds to almost tenth of a second.
This time there are 2 more database queries (codeigniter session fetch and updtate)
Is there something i can modify to to reduce the time when a new session is started?
CodeIgniter in opposite to Zend is already lighted. Try comment unused libraries.