Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static caching for PHP (Apache)?

I am installing a pre-build php-based web application for a client. Unfortunately the application performs very slowly because it compiles lots of data. Page load times go up to 40 sec.

I know about ob_caching but I don't want to mess with the application unless it is absolutely necessary.

Are there any tools/scripts/apache modules to cache the entire output of the application statically one the server and update it on a regular basis. I am just looking for a middleware or something which build regular static html pages form the php application. (BTW: I tried eaccelerator, but it didn't improve the situation.)

I would appreciate any tips. Thanks in advance.

like image 600
Jelko Avatar asked Feb 08 '26 02:02

Jelko


1 Answers

eAccelerator should have made a measurable difference, so are you sure it was installed correctly? You should have seen an eaccelerator section in phpinfo() showing that the cache was full. You may also have ahd the cache set too small etc. Alternatively, try APC instead. If neither show any performance improvement, you may have a server issue.

In any case, 40 seconds is crazy slow for anything. Are you sure this is PHP and not poorly optimised SQL queries?

like image 127
Matt Gibson Avatar answered Feb 09 '26 15:02

Matt Gibson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!