Wordpress Hack #13: Traffic Proofing Wordpress Hack Wordpress # 13: Tráfico pruebas Wordpress
996 views - 996 visitas -Posted in: Publicado en:
996 views 996 visitas
Please note: This page was originally written in English. Por favor nota: Esta página fue originalmente escrito en Inglés.
The original post can be viewed El post original se puede ver here aquí .
Please note: This page was originally written in English.
The text has been translated using an online service such as Google or Babelfish.
The original post can be viewed here.
Wordpress errors a problem? Wordpress errores de un problema? Too high of a load for your web host? Demasiado elevado de la carga de su web host? Worried about getting dugg, stumbled, or slashdotted? Preocupado por obtener dugg, tropecé, o slashdotted? Learn now to “traffic proof” your Wordpress site or blog! Aprende ahora a la "prueba de tráfico" Wordpress su sitio o blog!
This is installment #13 in Esta cuota es # 13 en 30 Wordpress Hacks in 30 Days 30 Wordpress Hacks en 30 Días !
If you’ve blogging for any length of time, or if you own multiple blogs at one time or another you’re likely to have a problem with “too much traffic”. Si has blogging para cualquier longitud de tiempo, o si usted es dueño de varios blogs en uno u otro momento, es muy probable que tenga un problema con "mucho tráfico". In this hacks series I’ve shown you how to keep your database maintained, but that doesn’t really matter if your starting to get 20,000 unique views per day or more. En esta serie de hacks que he demostrado cómo mantener su base de datos, pero que realmente no importa si tu empezar a obtener 20.000 visitas únicas por día o más. I’ve found over the that’s about the tipping point for most shared web hosts, the point at which your site reaches more than 250,000 “requests” per day or more and it starts maxing out the resources alloted to your domain. He encontrado más de la que sobre el punto de inflexión para la mayoría de los hosts web compartido, el punto en el que su sitio llega a más de 250.000 "peticiones" por día o más, y se inicia maxing los recursos asignado a su dominio. Every single time someone visits your Wordpress site, it makes “calls” to the database server to retrieve the posts, and the pages, and the categories, and header, and the footer, and your archives, and on and on and on. Cada vez que alguien visita su sitio de Wordpress, que hace "llamadas" a la base de datos del servidor para recuperar los puestos, y las páginas, y las categorías, y la cabecera y el pie de página, y sus archivos, y en y en y en. Get the picture? Accede a la foto? One page load could mean a dozen+ “calls” to the database. Una página de carga podría significar una docena + "pide" a la base de datos. That’s why 20,000 “page views” could mean “250,000 requests” for your site. Esa es la razón por la 20000 "páginas vistas" podría significar "250000 peticiones" de su sitio.
I actually got an email today after dinner about one of my sites having “very high loads” on the server, and that today requests were way over 300,000 and it was the highest traffic day in a very long time with 22,000+ pageviews. Yo realmente tengo un mensaje de correo electrónico después de la cena de hoy acerca de uno de mis sitios que tengan "muy altas cargas" en el servidor, y que hoy se pide más de 300.000 manera y es el más alto tráfico en un día muy largo tiempo, con 22.000 páginas +. I knew it was time to enable some sort of caching on this site. Sabía que era tiempo para que algún tipo de almacenamiento en caché en este sitio. The WP-Cache plugin has been around awhile (4-5 years), and I’ve used it before, but the main problem I’ve always had is you have to disable everything on your site that is either interactive or counts. El WP-Cache plugin ha sido en torno a un tiempo (4-5 años), y que he usado antes, pero el principal problema que he tenido siempre es que tenga que desactivar todo en su sitio web que sea interactivo o cuenta. This would include wp-postview (page and post counts), wp-postrating (live post ratings), etc. Even comments are a slight issue, since once they are approved it can be up to an hour before they appear on the cached pages. Esto incluiría wp-postview (página y después cuenta), wp-postrating (en vivo después ratings), etc Incluso los comentarios son un ligero problema, ya que una vez que sean aprobadas puede ser de hasta una hora antes de que aparezcan en las páginas en caché . “Normally” all javascript things, like adsense ads or affiliate ads work just fine, since they are called live on the cached pages the same as if they came from the Wordpress database. "Normalmente," todas las cosas a javascript, al igual que los anuncios de AdSense o de afiliados anuncios de trabajo muy bien, ya que se les llama vivir en la caché las páginas del mismo como si proceden de la base de datos de Wordpress.
WP-Cache hasn’t been updated in a few years from what I saw on their web site, but that’s ok because “ WP-Cache no se ha actualizado en unos pocos años a partir de lo que vi en su sitio web, pero eso es porque ok " WP-Super Cache WP-Super caché ” has come along. "Ha llegado a lo largo. It’s bigger and better than WP-Cache because the PHP engine is never called and it’s much quicker. Es más grande y mejor que WP-Cache debido a que el motor de PHP nunca es llamado y es mucho más rápido. Now, for those of you new to Wordpress that might not be so technical - what is a “cache?” A cache is when you have common pages stored so they don’t have to be fetched from a database every time if nothing has been updated. Ahora, para aquellos de ustedes a Wordpress nuevo que podría no ser tan técnica - lo que es un "cache?" La memoria caché es cuando se han almacenado las páginas comunes de modo que no tienen que ser traidos de una base de datos cada vez si no se ha actualizado. Your web brower has a “cache” and it uses the copy of web pages on your PC if nothing has changed on the web version. Brower su web tiene un "caché" y utiliza la copia de páginas web en su PC si no ha cambiado nada en la versión web. The Wordpress wp-super-cache plugin speeds up pages on your blog in the same way. El Wordpress wp-super-cache plugin acelera las páginas de su blog de la misma manera.
I happenned along a post a few weeks back on OminNoggin - “ I happenned un puesto a lo largo de un par de semanas atrás en OminNoggin - " Make Popularity Contest Work with WP Super Cache Hacer de popularidad de trabajar con WP Super caché “. ". I thought this as really cool, because he solved the problem by making the counters and statistics work using javascript instead of PHP. Pensé que como este realmente cool, porque se solucionó el problema haciendo que los contadores y estadísticas de trabajo utilizando JavaScript en lugar de PHP. I asked him in the comments if he could do the same to make Lester Chan’s Le pregunté en los comentarios si podría hacer lo mismo para hacer Lester Chan's WP-Postviews work on Javascript counts as all and he did WP-Postviews trabajo sobre Javascript cuenta como todos, y lo hizo ! Note - his fix only works on Wordpress 2.5, so first I deactivated the WP-PostViews plugin, and then I upgraded to Wordpress 2.5. Nota - su revisión sólo funciona sobre Wordpress 2.5, por lo tanto, primero he desactivado el WP-PostViews plugin, y luego actualizar a Wordpress 2.5. The I installed WP-Super Cache, and last I upgraded to the JavaScript version of WP-PostViews - and everything seemed to work fine! He instalado el WP-Super caché y, por último, He actualizado a la versión de JavaScript WP-PostViews - y todo parecía funcionar bien!
Let me say, “Your Mileage May Vary”! Permítaseme decir, "Su experiencia puede ser diferente"! The site I upgraded (that is now working fine with WP-Supercache AND JavaScript WP-PostViews) only has about a dozen Wordpress plugins. El sitio He actualizado (que está trabajando bien con WP-Supercache y JavaScript WP-PostViews) sólo tiene alrededor de una docena de Wordpress plugins. Everything seems to co-exist there just fine so far and the pages load much, much faster. Todo parece co-existen muy bien hasta el momento y la carga de páginas mucho, mucho más rápido. I attempted to do the same install tonight here on jtpratt.com and it didn’t go so well. Yo intento hacer lo mismo instalar esta noche aquí en jtpratt.com y no ir tan bien. I did receive some 500 errors, and the homepage didn’t seem to get any post counts for the updated JavaScript WP-PostViews. Hice recibir unos 500 errores, y la página de inicio no parecen llegar a cualquier puesto que cuenta para la actualización de JavaScript WP-PostViews. This blog is quite the exception since I use almst 4 dozen plugins, and quite a few of them are interactive - like SezWho, which enhances my comments. Este blog es la excepción ya que el uso almst 4 docenas de plugins, y bastantes de ellos son interactivos - como SezWho, lo cual aumenta mis comentarios. I disabled WP-Super-Cache here and backed out all the changes it made (to my .htaccess file) and deleted all it’s cached pages and deleted the plugin. I discapacitados WP-Super-Cache aquí y respaldada por todos los cambios que hizo (a mi. Htaccess) y suprime todas sus páginas en caché y se ha suprimido el complemento. I even had to click “update” on my “Options -> Permalinks” page to get the site to act normally again. Incluso había que hacer clic en "actualizar" en mi "Opciones -> perm" para obtener el sitio a actuar normalmente de nuevo. I think most “normal” sites (that don’t have all the crazy hacks I have here) will do just fine traffic proofing with WP-Super-Cache. Creo que la mayoría "normal" los sitios (que no tienen todos los hacks loco tengo aquí) lo hará bien con las pruebas de tráfico WP-Super-Cache. If you use Popularity Contest or WP-PostViews use the updated plugins I linked to. Si el uso de popularidad de WP-o PostViews utilizar la actualización de plugins I enlaces. If you have other problems with WP-Super-Cache and a plugin - Si usted tiene otros problemas con WP-Super-Cache y un plug-in -- maybe Thaya Kareeson tal vez Thaya Kareeson would be kind enough to help with this as well. sería tan amable de ayudar con este también.
As always - if you have problems, questions, or something to add - please comment now! Como siempre - si usted tiene problemas, preguntas, o algo que añadir - por favor comentario ahora!
Tags: wordpress-hack wordpress-Hack



























May 3rd, 2008 at 11:02 am 3 de mayo, de 2008 a 11:02 horas
Please feel free to let me know if you do have problems with your plugins while WP-Super-Cache is enabled. Por favor, no dude que me deje saber si usted tiene problemas con sus plugins, mientras que WP-Super-Cache está habilitada. I’ll see what I can do to make a mod to it and submit it to the original developers. Voy a ver qué puedo hacer para que un mod a él y lo presente a la original de los desarrolladores.
Thaya Kareesons last blog post.. Thaya Kareesons último blog .. Creating a Staging WordPress Blog for Testing Crear un blog de WordPress en escena para las pruebas