Slow pages in PHP


(TonBreukers) #1

After a long search I found the cause of my slow website. http://www.produits-gastronomiques.fr
I had uploaded the homepage in php and that translated the server inertia up to 17 seconds to the first pixel.
But now?
The other pages are in php because Rapidcart pro is written in php. Who knows what I can do about it?
Are there more Weavers who know this problem?
It would be great, it cost a lot of time to bring in all the products.

Greetings

Tony


(NeilUK) #2

Having your homepage or any other page set to .php should have little, if any, impact on speed.

Maybe you should look for a better host?


(Doug Bennett) #3

Just using PHP with a good hosting company should have no noticeable impact on the load speed of a page.
What the PHP is doing can cause delays. I don’t have RapidCart, but many other users do, so my guess is it’s not any issue with that product.
PHP and mySQL requests can be routed through to a different server(instead of running on the same server as standard html requests).

My best guess is you have a poor hosting setup.


(NeilUK) #4

I do have and use Rapidcart (on a decent host), no issues with loading times at all.


(Peter Danckwerts) #5

Is it still supposed to be slow? It loaded instantly for me.


(Doug Bennett) #6

The page index.html and index.php are both out there (defaults to HTML):

index.html

https://www.produits-gastronomiques.fr/index.html

Has a TTFB - TtimeTo First Byte) of around 565ms on a fast (gigabit) conection:

index.php:

https://www.produits-gastronomiques.fr/index.php

Has a TTFB of close to 8 seconds

If the only difference to these pages is the extension (PHP) then it’s definitely time for a new host.


(David) #7

Same here.


(Doug Bennett) #8

Load the PHP version: https://www.produits-gastronomiques.fr/index.php


(TonBreukers) #9

I discovered that there is an old php version on the server 5.6.36 and we are now building with 7.1.19.
It seems that the hoster does not update automatically.
That might be the reason.
Thanks for answering.


(Doug Bennett) #10

The link you gave above: http://www.produits-gastronomiques.fr/ is NOT a PHP page. It is an index.html page. You have both index.html and index.php files on the server. By default, you are loading the HTML version.