Current time: 12-04-2020, 06:57 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Improve First byte time - Wordpress - Justhost.com
02-21-2014, 11:26 PM
Post: #3
RE: Improve First byte time - Wordpress - Justhost.com
What I think is happening is this, you go to the site http://www.sci-rehab.com and then apache/php (starts) loads/compiles the site. The .htaccess is read and a re-direct is applied (or did you redirect from within wordpres?. I don't know/use wordpress or possible plugins. If it is in wordpress, you could also use parts of the info below.)

Then the browser does a new DNS lookup for scri-rehab.com and apache loads the website again (compiling)

Depending on how much control you have over the server/site you could seperate http://www.sci-rehab.com and sci-rehab.com to different folders, where http://www.sci-rehab.com is empty / no wordpress and in the .htaccess you specify redirect permanent / http://sci-rehab.com This would prevent PHP compiling all PHP pages.

This is something I did not test, it's theoretical. This only affects users that use the URL http://www.sci-rehab.com but at least it should cut the time in half.

From what I have seen is that the page is ok when it's initially loaded due to some caching. The main thing to speed-up would be to check if the hoster can setup something like Opcache or xcache or Zend-optimizer.

This keeps the PHP pages compiled instead of compiling each page upon request. This does not effect the output of the page, it's mererly that the php code is compiled into server readable language for processing. When you update a php file, it will be newly compiled / cached with programs like Opcache / xcache etc.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Improve First byte time - Wordpress - Justhost.com - Bas-tester - 02-21-2014 11:26 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)