Localized WordPress is much slower?

For each translation file, WordPress has to unpack it, then each entry will be converted into an Translation_Entry object. The short string “caller_get_posts” is deprecated. Use “ignore_sticky_posts” instead. will need three times more memory when it is translated: ‘”caller_get_posts” is deprecated. Use “ignore_sticky_posts” instead.’ => Translation_Entry::__set_state(array( ‘is_plural’ => false, ‘context’ => NULL, ‘singular’ => ‘”caller_get_posts” … Read more

Strategies to implement selective loading of plugins

Filter option_active_plugins. You can change the result of get_option() here without actually changing the database. if ( defined( ‘DOING_AJAX’ ) && DOING_AJAX ) add_filter( ‘option_active_plugins’, ‘disable_plugins_temporary’ ); function disable_plugins_temporary( $plugins ) { // unset plugins you don’t need, then return $plugins; } Background wp_get_active_and_valid_plugins() calls get_option( ‘active_plugins’, array() ) to get the active plugins. In … Read more

WordPress SLOW, tried everything!

I could be wrong, but I don’t think your queries are the problem here. Seeing the result “36 queries in 8.291 seconds” is scary, but that only measures the time in between the start of the first query and the completion of the last query. There are a lot of other things in there slowing … Read more

How to fix wordpress slow first time load (Local Server)?

Well website (WordPress) page speed and load depends on many things. MySql Queries Image optimisation Css files (more cs files more page load and page speed time). Javascript files ( more js files more page load and page speed time). Defer parsing of JavaScript Minify JavaScript Minify CSS Enable gzip compression Leverage browser caching Minimize … Read more

What’s the difference between wp_insert_user() and wp_create_user()

None. The whole source of wp_create_user() is: function wp_create_user($username, $password, $email=””) { $user_login = esc_sql( $username ); $user_email = esc_sql( $email ); $user_pass = $password; $userdata = compact(‘user_login’, ‘user_email’, ‘user_pass’); return wp_insert_user($userdata); } It just calls insert version almost immediately, basically a shorthand wrapper. As for why it exists – core works in mysterious ways … Read more

Optimize apache for WP use

Souljacker, I would first take a look at your plugins. Star Ratings for Reviews hasn’t been updated for over 3 years and looks like its real heavy on the db. I saw some raw sql with some INNER JOINS that look troublesome. On the server side you should implement some object caching. APC is the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)