Bad session handling can lead to performance issues

The reason is shortly explained in the PHP documentation for session_start() function here: http://php.net/manual/en/function.session-start.php#110649 Furthermore, you can read about it in the session_write_close() function reference page. How we found this? We had slow loading of some admin pages (Plugins, All Pages) in WordPress and every time P3 Profiler was pointing to a different plugin, but […]

Monitoring slow queries in MySQL

If you are in doubt that some really slow queries are taking place on your server and they put you on too much load, then use this change in the configuration file to enable logging of slow queries: The config files usually is /etc/mysql/my.cnf. Uncomment these: slow-query-log = 1 slow-query-log-file = /var/log/mysql/mysql-slow.log long_query_time = 1 […]

Prevent hotlinking on your media files

Whenever you want to ban/prevent hotlinking your media files and protect your server’s resources and bandwidth you may use the following snippet in the .htaccess file of your main directory of your site.

Just replace YOURSITE.YOURDOMAIN with your site and at the fourth row of the actual code (don’t mind the # comment line) […]

Cache meta tags in the header

 

WordPress optimization like a boss

Hello, Scanning our logs on your account further, it seems that the majority of the usage is coming from your WordPress installation. We suggest that you optimize the software to run as efficiently as possible to use the least amount of resources. Since you are using WordPress, I suggest visiting these following URLs for more […]