Loading scripts on specific page

method two won’t work because no page is loaded yet and $post isn’t set when your if check runs. with method one again $post is not yet set at that point, but this method will work if you use WordPress conditionals: function load_slider(){ if( is_page(11746) ){ // Load slider on home page wp_register_script(‘start-slidorion’, get_bloginfo(‘stylesheet_directory’) . … Read more

What is the expected limit for acceptable performance of WordPress without any adjustments?

A lot of this is very subjective and hard to answer because of different server environments, themes, size of database etc. In your experience, when is the time one needs to start thinking about scaling up? If you are concerned with your users experience you should already be practicing sound front end performance techniques. When … Read more

How to implement a ‘fail whale’ to graciously limit server load (Solutions for system capacity governing)

Twitter and other high-volume sites probably do this one layer ahead of the servers. Probably with a load balancer that can detect the server load over all servers and if the load is too high (when machines stop replying) they redirect traffic to a server that returns only the “fail whale” page. This answer on … Read more

Many POST requests to /xmlrpc.php from GoogleBot taking down server?

I would block the IP with iptables if it were me, and if you have that kind of server level access. You could also disable xmlrpc. Unfortunately, since 3.5 the admin screen option to disable that feature has been removed. A single line of code should disable it though: add_filter( ‘xmlrpc_enabled’, ‘__return_false’ ); That might … Read more

Profiling a WordPress Website for Deployment on Shared Hosting?

Profiling with Profiler-Plugins Not sure exactly what you need to accomplish with your profiling, but WP Tuner (WordPress Plugin) goes a long way to finding what is slowing down your WP install. It looks at each plugin and give your the memory, CPU time and SQL queries involved. The SQL Monitor (WordPress Plugin) analyzes SQL … Read more