How To Speedup Your Wordpress Blog ¿Cómo de velocidad de su blog Wordpress
This is a Guest post by Ram from Se trata de un usuario por puesto de Ram Teknobites Teknobites who blogs about Tech- news, Web 2.0, tools, tips and tweaks. que los blogs sobre la Tech-noticias, Web 2.0, herramientas, consejos y ajustes. Don’t forget to visit his blog for more news and No te olvides de visitar su blog de noticias y más Subscribe to his blog Suscríbase a su blog for regular updates. de actualizaciones periódicas.
Wordpress is the best blogging platform available (some may not agree) with hundreds of plugins to tweak for your needs. Wordpress es la mejor plataforma de blogs disponibles (algunos pueden no estar de acuerdo) con cientos de plugins para modificar a sus necesidades. When you start your blog you may not need to optimize your blog to speedup but once your blog receives traffic or make it to the digg frontpage it is necessary to tweak it so that it runs faster. Al iniciar el blog en el que no podrá necesidad de optimizar su blog a la velocidad, pero una vez que su blog recibe el tráfico o hacer a la primera página de Digg que es necesario modificar de forma que se ejecuta más rápido. In this post we will see how we can speedup wordpress blogs with simple steps. En este post vamos a ver cómo podemos velocidad wordpress blogs con pasos sencillos.

- Themes like K2 are fancy and give a nice feel for the visitor but they consume lot of resources and effect page loading time. Temas como K2 son de fantasía y dar un agradable sentir para el visitante, pero que consumen muchos recursos y el efecto de carga de las páginas del tiempo. Use simple themes with less CSS and Javascript so that your blog runs smoothly. Uso simple con los temas menos CSS y Javascript para que su blog se ejecuta sin problemas. If you have to use AJAX use where it is necessary. Si tiene que utilizar AJAX uso cuando es necesario. You can even optimize CSS and Javascript with tools like Puede incluso optimizar la CSS y Javascript con herramientas como CSS Compressor Compresor CSS and y Javascript Compressor Compresor Javascript .
- Use plugins which are necessary, remove all unwanted plugins. Utilice plugins que sean necesarios, eliminar todos los plugins no deseados.
- Wordpress has a bulit in object cache but it is not enabled by default, you can enable this by adding the below lines to your wp-config.php file. Wordpress ha bulit en un objeto de caché, pero no está habilitado por defecto, puede que este por debajo de la adición de líneas a su wp-config.php archivo. You can notice the difference in performance later. Usted puede notar la diferencia en el rendimiento posterior.
//enable Object Cache / / habilitar el caché de objetos
define(’ENABLE_CACHE’, true); define ( 'ENABLE_CACHE', true);
//define expiration time / / definir fecha de caducidad
define(’CACHE_EXPIRATION_TIME’, 900); define ( 'CACHE_EXPIRATION_TIME', 900); - Wordpress has Gzip compression support you can enable this so that browsers with Gzip support will load your site faster. Wordpress ha Gzip de compresión de apoyo puede habilitar para que los navegadores Gzip con el apoyo de su sitio carga más rápido. This function is wp-admin >> Options >> Reading . Esta función es wp-admin>> Opciones>> Reading. This should be disabled if you plan to use Wp-cache plugin. Esto debería ser desactivado si va a utilizar Wp-cache plugin.
- Use Usar Wp-cache plugin to cache posts in static files. plugin para almacenar en caché puestos en los archivos. These files are served for future requests with out compiling PHP code and building the page from the database. Estos archivos se sirven para futuras solicitudes a cabo con la compilación de código PHP y la creación de la página de la base de datos. This is a must use plugin when you are dugg. Este es un plugin debe utilizar cuando se le dugg. Remember Gzip compression should be disabled to use this plugin. Recuerde Gzip de compresión debe ser discapacitados para utilizar este plugin.
- Try to minimize the external scripts on your sidebar these include Mybloglog, Blogcatalog and other javascript widgets. Trate de reducir al mínimo el exterior de scripts en su barra lateral incluir estas MyBlogLog, Blogcatalog a javascript y otros artilugios.
- You can serve TLA and other affiliate banners from your own server instead of loading the images remotely. Puede servir de TLA y otras pancartas de afiliados de su propio servidor en lugar de cargar las imágenes a distancia. (This may consume your bandwidth but you are no longer dependent on external server speed) (Esta puede consumir su ancho de banda, pero ya no depende de la velocidad del servidor externo)
- Install PHP Compiler Cache scripts like eAccelerator or Zend Optimizer on your server. Instalar compilador de cache de PHP scripts como eAccelerator o el optimizador de Zend en su servidor. These scripts will cache PHP scripts in their compiled state so that the server don’t have to compile PHP scripts each and every time they called from wordpress. Estos scripts PHP caché de scripts en su estado compilado para que el servidor no tiene que compilar cada uno de los scripts PHP y cada vez que es llamado desde wordpress.
- Enable Mysql query cache: Mysql query cache saves query results and serves it when the same query comes again. Activar MySQL Query cache: MySQL Query caché guarda los resultados de las consultas y sirve cuando la misma consulta viene de nuevo. You can add the below 2 lines to your /etc/my.cnf file to enable this. Puede añadir el siguiente 2 líneas a su / etc / my.cnf para permitir esto.
query_cache_type = 1 query_cache_type = 1
query_cache_size = 33554432 query_cache_size = 33554432
The query cache parameter tells how much memory to use, in this case it is 32M. La caché de consultas parámetro indica la cantidad de memoria a utilizar, en este caso es 32M.
The below tips are only useful if you have a dedicated server. Los siguientes consejos sólo son útiles si tienes un servidor dedicado.
Now apply some of these tweaks if not all and make your Wordpress to run faster. Ahora se aplican algunos de estos ajustes, si no todos, y hacer su Wordpress a correr más rápido. Do let me know if you use any other tweaks to speedup your blog. Permítanme hacer saber si el uso de cualquier otro ajustes de velocidad a tu blog.
Share this Post Compartir este post


























Interesting set of tips here, Ram! Interesante serie de consejos aquí, Ram! I need to implement a few of them myself! I necesidad de aplicar algunas de ellas yo mismo!
OW, wish I had the dedicated server! OW, deseo que tuve el servidor dedicado!

Nice tips, wp-cache is sure one of the good way to optimize download time. Niza consejos, wp-cache es un seguro de la buena manera de optimizar el tiempo de descarga. But it’s kind of annoying if you try to modify your theme or else because it will not appear immediately. Sin embargo, la especie de molesto si intenta modificar su tema o bien porque no aparecen inmediatamente. Need to clear the cache and disable it before begin tweaking. Necesidad de borrar la caché y desactivarlo antes de empezar a ajustar.
Nice tips - but people need to be minimalist to take off JS widgets and plugins. Consejos de Niza -, pero la gente necesita ser minimalista para despegar JS widgets y plugins. I am, for one ! Estoy, por uno!
You might also want to take a look at similar post I wrote some time back, and was stumbled heavily: Usted también puede echar un vistazo a similar post que escribí algún tiempo atrás, tropezó y fue en gran medida:
Have you optimized your blog? ¿Se ha optimizado su blog?
You should add one more bit to #1 - use PHP compression for stylesheet(see my post for details). Usted debe agregar un poco más al # 1 - usar PHP para la compresión de estilos (ver mi post para más detalles).
Good tips. Buenos consejos. I can vibe with the whole complicated theme thing too. No puedo vibra con todo el tema lo complicado demasiado. I think the mess of a theme I use has been slowing things up quite a bit. Creo que el lío de un tema que uso ha sido frenar las cosas un poco. It doesn’t help either that I had a huge error that was coming up every time someone tried to access my site! No ayuda, ya sea que tuve un gran error que se viene cada vez que alguien trató de acceder a mi sitio!
That’s what I get for using a theme that includes a million php files. Eso es lo que tengo para el uso de un tema que incluye un millón de archivos PHP. *rolling eyes* * * ojos móvil
Wp-cache is a good plugin if you cant afford for hosting but I guess paying 10 to 20$ month is not a big deal and You should be able to host your site nicely. Wp-cache es un buen complemento si no puede pagar por haber acogido, pero creo que el pago de 10 a 20 $ mes no es un gran negocio y Usted debe ser capaz de acoger bien su sitio.
I had been in dig with 60000 hits in 24hrs with all scripts running including related post . Yo había estado en cavar con 60.000 visitas en 24 horas con todos los scripts incluidos los relacionados con el funcionamiento posterior. My host never said anything to me on that. Mi anfitrión nunca dijo nada a mí en eso.
The inbuilt chache property I was not aware of that. La propiedad intrínseca chache yo no era consciente de ello. I would find in wordpress codex to see more about it Me gustaría encontrar en wordpress códice para ver más sobre él
Thanks to Nirmal for this oppurtunuty and to all of you who have commented. Gracias a Nirmal oppurtunuty para este y para todos los que han comentado.
@Sumesh @ Sumesh
I am not aware of this, i will check your post. Yo no soy consciente de ello, voy a chequear su correo. Thanks for the info Gracias por la info
@Ashish @ Ashish
You are lucky, when my site is on digg front page it is my mysql server is down for sometime, in that short time i removed K2 theme and implemented few tweaks and then it went well. Usted está de suerte, cuando mi sitio está en la portada de Digg es mi servidor MySQL se establecen, para en algún momento, en ese corto período de tiempo i eliminado tema K2 y aplicación de algunos ajustes y, a continuación, que ha ido bien.
@Ram: That was not luck but Because my host is powerful enough to keep up with those affects. @ Ram: Esto no es suerte, sino porque mi equipo es lo suficientemente potente para seguir con las afecta. I have no optimization done not even css clean up or even Javascript reduction. No tengo ninguna optimización de hecho ni siquiera css limpiar o incluso la reducción de Javascript.
It depends largely on your host. Depende en gran medida de su anfitrión. I am on shared hosting and pay around 10$ a month thats it. Estoy en alojamiento compartido y pagar alrededor de 10 $ al mes thats él.
Interesting tips. Interesantes consejos. I need to check them out in details and optimise my blog with it. Tengo que comprobar a cabo en los detalles y optimizar mi blog con ella.
Thanks for this post man! Gracias por este post hombre! Keep it coming! Mantenga venir!
I looked around for the inbuilt cache you mentioned there. Miré alrededor de la caché incorporado usted ha mencionado allí. It has some issues and are really not recommended for shared hosting. Tiene algunas cuestiones, y son realmente no se recomienda para alojamiento compartido. Here is a small discussion and Aquí está una pequeña discusión y using wordpress object cache utilizando wordpress objeto de caché
# Mark Jaquith # Marca Jaquith
Posted 7/25/2006 at 4:40 pm | Permalink Publicado 7/25/2006 a 4:40 pm | Permalink
One of the biggest misconceptions is that the object cache invalidates the need for an output (HTML) cache. Uno de los conceptos erróneos más grande es que el objeto de caché invalida la necesidad de una salida (HTML) caché. It doesn’t. No. The object cache saves a few MySQL queries and a few PHP cycles structuring the results of those queries, but it still leaves many queries for MySQL, and it still requires that WordPress be fully loaded for each hit. El objeto guarda un caché de unos MySQL preguntas y unos pocos PHP estructuración de los ciclos de los resultados de esas consultas, pero aún deja muchas preguntas para MySQL, y todavía exige que se WordPress a plena carga para cada golpe. WP-Cache2 is still extremely useful for caching your HTML output. WP-Cache2 sigue siendo extremadamente útil para el almacenamiento en caché de su salida HTML.
It should also be noted that not everyone will benefit from using the built-in disk-based object cache. Cabe señalar también que no todo el mundo se beneficiarán de la utilización de built-in basado en disco objeto caché. I strongly suggest that you measure execution time and compare. Me sugieren fuertemente que medir el tiempo de ejecución y comparar. If you have full access to your server (dedicated or virtual), I suggest you look into alternative storage engines for the object cache, such as the ones using Memcached or APC, as this data will return more quickly than from the disk cache. Si usted tiene pleno acceso a su servidor (dedicado o virtual), le sugiero que busque en otros motores de almacenamiento para el objeto de caché, como el que utilizan Memcached o APC, ya que este volverá datos más rápidamente que a partir de la caché de disco.
#2 David Chait # 2 David Chait
I just wanted to chime in full agreement with Mark. Sólo quería algo totalmente de acuerdo con Mark. Generally the object cache should NOT be used, unless you know your server setup and performance factors VERY well. Generalmente el objeto de caché no debe ser utilizado, a menos que usted conozca a su servidor de configuración y factores de rendimiento muy bien. It has even been proven detrimental (seriously in certain instances) on shared hosting setups. Incluso se ha demostrado perjudicial (en serio en algunos casos) en configuraciones de alojamiento compartido. If you have a dedicated server, then the alternative memory cache engines become useful — but only if you aren’t already running a mysql query cache of a decent size… Si usted tiene un servidor dedicado, entonces la alternativa de memoria caché de los motores de convertirse en útiles - pero sólo si no se está ejecutando mysql una caché de consultas de un tamaño decente ...
#3 Dougal N º 3 Dougal
Mark and David, Mark y David,
Thanks for pointing out more details on possible downsides to using the object cache. Gracias por señalar más detalles sobre las posibles desventajas de utilizar el objeto de caché. I didn’t want to sidetrack into that tangent in my article, partially to keep it short, and partially because I’m not familiar myself with just what factors might be involved. No quería dejar de lado que en tangente en mi artículo, parte que le mantenga a corto, y en parte porque no estoy familiarizado con sólo yo qué factores podrían estar involucrados. Personally, I am on a dedicated server (at least for all practical purposes), and the object cache works fine for me. Personalmente, estoy en un servidor dedicado (al menos para todos los efectos prácticos), y el objeto de caché funciona bien para mí. But I also use WP-Cache2, MySQL query caching, and the APC PHP opcode cache. Pero yo también uso WP-Cache2, MySQL Query caching, y el APC PHP Opcode caché.
@Ashish @ Ashish
Thanks for the info, i will check that Gracias por la info, voy a comprobar que
Nice tips… I particularly liked the two 1) using light themes 2) using wp-cache they surely will prevent server from overloaded. Niza consejos ... me ha gustado especialmente las dos 1) utilizando la luz temas 2) usando wp-cache que sin duda evitará que el servidor de sobrecarga.
Nice tips there, Ram. Niza consejos allí, Ram. WP Cache plugin will be of great use. Caché plugin WP será de gran utilidad.
Excellent tips Ram! Excelente Ram consejos! Keep up the good work. Mantener el buen trabajo. Also, you guys might want to check out the new WP-SuperCache plugin. Además, ustedes tal vez quieran ver el nuevo WP-SuperCache plugin. I am using it and it’s made a good bit of difference. Lo estoy usando y es un buen poco de diferencia.
Aseem
I had forgotten about Gzip compression. Me había olvidado de la compresión del gzip. Thx for reminding me Thx para recordar a mí
Thanks for the list. Gracias por la lista. I need it at this point in time. Lo necesito en este momento. Getting tired of waiting for things to load. Cansando de esperar para cargar las cosas.
Wow, nice tips. Wow, bueno consejos. I will probably be implementing some of these tips in my blog soon. I será probablemente la aplicación de algunas de estas sugerencias en mi blog pronto. Bookmarked it for now! Marcada por el momento!
Are u using all technique or which? Están utilizando todos los u técnica o que?
Thats a superb guide on speeding the wordpress, but i guess 2.5x versions are already quick enough when compared to the older versions. Eso es una excelente guía sobre el exceso de velocidad wordpress, pero supongo 2,5 veces las versiones son ya bastante rápido en comparación con las versiones más antiguas.