{"id":4734,"date":"2009-02-05T13:22:27","date_gmt":"2009-02-05T12:22:27","guid":{"rendered":"http:\/\/www.carballada.com\/?p=4734"},"modified":"2009-02-06T09:22:59","modified_gmt":"2009-02-06T08:22:59","slug":"hypercache-xcache-y-dbcache","status":"publish","type":"post","link":"https:\/\/www.carballada.com\/wordpress\/2009\/02\/hypercache-xcache-y-dbcache","title":{"rendered":"xCache y m\u00e1s"},"content":{"rendered":"<p><a href=\"http:\/\/www.carballada.com\/wp-content\/uploads\/test-con-xcache-dbcache-hypercache.jpg\"><img loading=\"lazy\" class=\"alignleft size-thumbnail wp-image-4739\" title=\"test-con-xcache-dbcache-hypercache\" src=\"http:\/\/www.carballada.com\/wp-content\/uploads\/test-con-xcache-dbcache-hypercache-128x87.jpg\" alt=\"test-con-xcache-dbcache-hypercache\" width=\"128\" height=\"87\" srcset=\"https:\/\/www.carballada.com\/wordpress\/wp-content\/uploads\/test-con-xcache-dbcache-hypercache-128x87.jpg 128w, https:\/\/www.carballada.com\/wordpress\/wp-content\/uploads\/test-con-xcache-dbcache-hypercache-300x204.jpg 300w, https:\/\/www.carballada.com\/wordpress\/wp-content\/uploads\/test-con-xcache-dbcache-hypercache-1024x699.jpg 1024w, https:\/\/www.carballada.com\/wordpress\/wp-content\/uploads\/test-con-xcache-dbcache-hypercache.jpg 1607w\" sizes=\"(max-width: 128px) 100vw, 128px\" \/><\/a>Hace unos meses jugu\u00e9 con el plugin para <a title=\"wordpress\" href=\"http:\/\/wordpress.org\/\">WordPress<\/a> <a title=\"wp super cache en carballada\" href=\"http:\/\/www.carballada.com\/2008\/08\/wp-super-cache-manager\">WP Super Cache<\/a> y lo contaba en <a title=\"wp super cache en carballada\" href=\"http:\/\/www.carballada.com\/2008\/08\/wp-super-cache-manager\">este post<\/a>.<\/p>\n<p>Lo he tenido <em>conectado <\/em>durante todo este tiempo pero no estaba contento con el <strong>rendimiento <\/strong>que me ofrec\u00eda utilizando mi <em>theme <\/em>actual de <a title=\"wordpress\" href=\"http:\/\/wordpress.org\/\">WordPress<\/a>.<\/p>\n<p>Y he encontrado lo que parece la combinaci\u00f3n <em>perfecta <\/em>para mejorar claramente el <em>rendimiento<\/em>: <a title=\"hyper cache\" href=\"http:\/\/wordpress.org\/extend\/plugins\/hyper-cache\/\">Hyper Cache<\/a>, <a title=\"xcache\" href=\"http:\/\/xcache.lighttpd.net\/\">xCache<\/a> y <a title=\"db cache\" href=\"http:\/\/wordpress.org\/extend\/plugins\/db-cache\/\">DB Cache<\/a>.<\/p>\n<p>Son <em>tres <\/em>productos muy diferentes de distintos tipos de <a title=\"cach\u00e9 en wiki\" href=\"http:\/\/es.wikipedia.org\/wiki\/Cach%C3%A9\">cach\u00e9<\/a>, a diferentes <em>niveles<\/em>.<\/p>\n<p><!--more-->Durante este fin de semana pasado realic\u00e9 las pruebas y el resultado es <strong>impresionante<\/strong>.<\/p>\n<p>Con el uso combinado de estas tres <a title=\"cach\u00e9 en wiki\" href=\"http:\/\/es.wikipedia.org\/wiki\/Cach%C3%A9\">caches<\/a> los tiempos de respuesta y el rendimiento son muy altos.<\/p>\n<p><a title=\"hyper cache\" href=\"http:\/\/wordpress.org\/extend\/plugins\/hyper-cache\/\">Hyper Cache<\/a> es un plugin de <a title=\"wordpress\" href=\"http:\/\/wordpress.org\/\">WordPress<\/a> del estilo de <a title=\"wp super cache en carballada\" href=\"http:\/\/www.carballada.com\/2008\/08\/wp-super-cache-manager\">WP Super Cache<\/a> pero mucho m\u00e1s sencillo de configurar y de hacerlo funcionar, con unos resultados mu buenos tambi\u00e9n.<\/p>\n<p><a title=\"xcache\" href=\"http:\/\/xcache.lighttpd.net\/\">xCache<\/a> es un <a class=\"ext-link\" rel=\"nofollow\" href=\"http:\/\/www.php.net\/\"><span class=\"icon\">PHP<\/span><\/a> <em>opcode cacher<\/em> que permite ejecutar c\u00f3digo <a class=\"ext-link\" rel=\"nofollow\" href=\"http:\/\/www.php.net\/\"><span class=\"icon\">PHP<\/span><\/a> como si ya estuviera <em>precompilado <\/em>sin necesidad de interpretarlo.<\/p>\n<p><a title=\"db cache\" href=\"http:\/\/wordpress.org\/extend\/plugins\/db-cache\/\">DB Cache<\/a> es otro plugin de <a title=\"wordpress\" href=\"http:\/\/wordpress.org\/\">WordPress<\/a> que cachea las sentencias <a title=\"sql en wiki\" href=\"http:\/\/es.wikipedia.org\/wiki\/SQL\">SQL<\/a> a la <em>base de datos<\/em>.<\/p>\n<p><a href=\"http:\/\/www.carballada.com\/wp-content\/uploads\/www-con-xcache-hypercache-dbcache.jpg\"><img loading=\"lazy\" class=\"alignleft size-thumbnail wp-image-4745\" title=\"www-con-xcache-hypercache-dbcache\" src=\"http:\/\/www.carballada.com\/wp-content\/uploads\/www-con-xcache-hypercache-dbcache-128x87.jpg\" alt=\"www-con-xcache-hypercache-dbcache\" width=\"128\" height=\"87\" srcset=\"https:\/\/www.carballada.com\/wordpress\/wp-content\/uploads\/www-con-xcache-hypercache-dbcache-128x87.jpg 128w, https:\/\/www.carballada.com\/wordpress\/wp-content\/uploads\/www-con-xcache-hypercache-dbcache-300x204.jpg 300w, https:\/\/www.carballada.com\/wordpress\/wp-content\/uploads\/www-con-xcache-hypercache-dbcache-1024x696.jpg 1024w, https:\/\/www.carballada.com\/wordpress\/wp-content\/uploads\/www-con-xcache-hypercache-dbcache.jpg 1604w\" sizes=\"(max-width: 128px) 100vw, 128px\" \/><\/a>Las pruebas se volvieron a realizar con el <em>estresador <\/em><a title=\"jmeter\" href=\"http:\/\/jakarta.apache.org\/jmeter\/\">JMeter 2.3.2<\/a> del proyecto <a title=\"jakarta en apache\" href=\"http:\/\/es.wikipedia.org\/wiki\/Apache_Tomcat\">Jakarta<\/a> de la  <a title=\"Apache Software Foundation\" href=\"http:\/\/es.wikipedia.org\/wiki\/Apache_Software_Foundation\">Apache Software Foundation<\/a><\/p>\n<p>Y como la anterior vez, las pruebas consistieron de nuevo en la ejecuci\u00f3n de cinco hilos de <em>100 iteraciones<\/em> con consultas <strong>http <\/strong>a <em>9 p\u00e1ginas aleatorias<\/em> del blog y la medici\u00f3n de los <em>tiempos de acceso, medias, medianas y desviaciones<\/em> en una m\u00e1quina virtual copia de la real.<\/p>\n<p>Los resultados son los siguientes:<\/p>\n<ul>\n<li>Rendimiento sin nada activado: <strong>107 pag\/minuto<\/strong>, mediana del tiempo de respuesta <strong>2.921 ms<\/strong>.<\/li>\n<li>Rendimiento con <a title=\"xcache\" href=\"http:\/\/xcache.lighttpd.net\/\">xCache<\/a>: <strong>312 pag\/minuto<\/strong>, mediana del tiempo de respuesta <strong>1.061 ms<\/strong>.<\/li>\n<li>Rendimiento con <a title=\"xcache\" href=\"http:\/\/xcache.lighttpd.net\/\">xCache<\/a> y <a title=\"hyper cache\" href=\"http:\/\/wordpress.org\/extend\/plugins\/hyper-cache\/\">Hyper Cache<\/a>: <strong>971 pag\/minuto<\/strong>, mediana del tiempo de respuesta <strong>224 ms<\/strong>.<\/li>\n<li>Rendimiento con <a title=\"xcache\" href=\"http:\/\/xcache.lighttpd.net\/\">xCache<\/a>, <a title=\"hyper cache\" href=\"http:\/\/wordpress.org\/extend\/plugins\/hyper-cache\/\">Hyper Cache<\/a> y <a title=\"db cache\" href=\"http:\/\/wordpress.org\/extend\/plugins\/db-cache\/\">DB Cache<\/a>: <strong>1.194 pag\/minuto<\/strong>, mediana del tiempo de respuesta <strong>168 ms<\/strong>.<\/li>\n<\/ul>\n<p>En la m\u00e1quina real los resultados se disparan, con todo activado nos vamos a <strong>13.225 pag\/minuto<\/strong> con una mediana del tiempo de respuesta <strong>13 ms<\/strong>.<\/p>\n<p>Y todo \u00e9so sin sacrificar mi <em>theme <\/em>y con lo pesado que resulta, <strong>no <\/strong>hace falta comentar mucho m\u00e1s.<a title=\"xcache\" href=\"http:\/\/xcache.lighttpd.net\/\"> <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hace unos meses jugu\u00e9 con el plugin para WordPress WP Super Cache y lo contaba en este post. Lo he tenido conectado durante todo este tiempo pero no estaba contento con el rendimiento que me ofrec\u00eda utilizando mi theme actual de WordPress. Y he encontrado lo que parece la combinaci\u00f3n perfecta para mejorar claramente el [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,10],"tags":[228,233],"geo":null,"_links":{"self":[{"href":"https:\/\/www.carballada.com\/wordpress\/wp-json\/wp\/v2\/posts\/4734"}],"collection":[{"href":"https:\/\/www.carballada.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.carballada.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.carballada.com\/wordpress\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.carballada.com\/wordpress\/wp-json\/wp\/v2\/comments?post=4734"}],"version-history":[{"count":0,"href":"https:\/\/www.carballada.com\/wordpress\/wp-json\/wp\/v2\/posts\/4734\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.carballada.com\/wordpress\/wp-json\/wp\/v2\/media?parent=4734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.carballada.com\/wordpress\/wp-json\/wp\/v2\/categories?post=4734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.carballada.com\/wordpress\/wp-json\/wp\/v2\/tags?post=4734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}