The commands on this page are useful for measuring php response times etc for your WordPress installation via commandline. This gives useful info to help debug issues at the php level separate from the http routes.
I'm pretty sure I didn't come up with this, but I have shared it in a few different places so just adding it to my personal gist repo for reference.
Create a script (name it whatever you want, something like t.php
should suffice) in the root directory of your wp install (i.e. the same directory as the wp-config.php
and main index.php
file for WP. You can substitue whatever you want in the $_SERVER['REQUEST_URI']
to test different pages if you want.
<?php
$_SERVER['HTTP_HOST'] = 'eventsmart.com';
$_SERVER['REQUEST_URI'] = '/pricing/';
$_SERVER['HTTPS'] = 'on';
include 'index.php';
time php t.php
Where t.php is the name of the script you created in the initial step.
strace -s 200 -o /dev/stdout php t.php | grep sendto