简体   繁体   中英

php codeigniter slow initial load

There is a site. Everything was just ok, but suddenly its working a bit strange: http://gtmetrix.com/reports/bienestarenelhogar.com/bSruWlXF (click the timeline)

It's usual apache+php+mysql

The initial request takes 15 seconds. Its using codeigniter 2.1.0. I have suspicion that the igniter is causing the problem, since the other php pages are just ok.

I currently try to get to logs, but I don't have root and can't sudo on the server. Any other way to diagnose that?

(I'm not a php guy, I'm all about java)

Any help is appreciated.

by enabling caching in your codeigniter app, you can boost up your app, much better. just need to append some code in project's .htaccess file.

ExpiresActive On

<Directory "/path/to/public_html/files">
    Options FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    Allow from all
    ExpiresDefault A300
    <FilesMatch "\.html$">
        Expires A86400
    </FilesMatch>
    <FilesMatch "\.(gif|jpg|png|js|css)$">
        Expires A2592000
    </FilesMatch>
</Directory>

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM