I am busy with a CI project using CI3 & HMVC. I work during office hours at work, then take it home for weekend & after work development. Using the two machines has been working for a long time. Monday morning, as normal I tried continuing from my weekend/home code and suddenly the project is super slow on my work machine but the machine has not changed. It runs Suse Linux (php 5.6). I wait forever for pages to load.
The exact same code works perfectly at home. when I look at the log after trying to access just one page:
INFO - 2016-08-02 09:44:23 --> Config Class Initialized
INFO - 2016-08-02 09:46:30 --> Final output sent to browser
DEBUG - 2016-08-02 09:46:30 --> Total execution time: 127.3685
One page takes almost two minutes to load.
Speed Up CodeIgniter Please Checkout Some Points
Compress HTML output
Enable Cache functions
Enable Gzip Compression
I finally discovered what was wrong with my CI application. I have a JSON file that is used to store settings for each module. As soon as I remove the JSON file, the application is faster. I am still not sure why this is not a problem on my home PC.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.