Category: Uncategorized

How to optimize WordPress for best performance – part2 ?

In previous post i’ve shared simple Nginx configuration with proxy_pass_cache. Such configuration looks good for static pages and rare changed content with manual cache purge. But what if you have quite active blog with frequent updates. There is no problem with caching on Nginx side, but in case of changes in content – cache should […]

Read more

Wait for MySQL service in loop

I have no mysql client except php mysql driver on application node, that’s why small mysql ping script have to be done. Small sample here :

You can set execution bit by:  chmod +x mysql_ping.php Let’s run mysql_ping in loop: while ! `./mysql_ping.php`; do sleep 1; done && echo 'MySQL is alive' Results when MySQL server is down:

Successful Results:

 

Read more

How to measure current REDIS operations per second ?

 

Read more