Antiguo y abandonado blog de Ricardo Galli :-(

Monday 6/11/2006

wp-cache 2.0.19 para WP-MU

Filed under: Mis hacks, soft libre — gallir @ 23:26

He sacado la versión 2.0.19 (beta) del WP-Cache. Esta versión la pude desarrollar mientras probaba sobre una instalación WP-MU cedida por Fernando Serer (gracias).

Qué no hace

  • Activar o desactivar el cache selectivamente para cada blog virtual. Esto necesita de cambios más importantes, en un futuro lo haré.

  • Borrar la cache de un blog en particular desde el panel de control. Si se selecciona borrar la cache, borra todas.

Qué mejoró

  • Cada blog virtual genera su propio fichero cache único e inconfundible con la de los demás blogs virtuales.

  • La generación de claves es correcta tanto para Apache1 como Apache2. En la primera del 2.0.18 había problemas con el Apache 2 por la “desaparición” de la variable $_SERVER['SCRIPT_URI'].

  • Cuando se borran automáticamente los ficheros cache (del apunte o los índices) de un blog por modificación del apunte, o por nuevos comentarios, sólo se borran aquellos que pertenecen al mismo blog_id.

Bajar

El fichero ZIP.

Agradecería que los interesado lo prueben antes de hacerlo “oficial” en la página del wp-cache. El log:

2006-11-06: 2.0.19
    - Added control of blog_id to delete only those cache files belonging to the same
      virtual blog. $blog_id is tricky business, because the variable is not assigned yet
      when wp-cache-phase1.php is called, so it cannot be used as part of the key

11 Comments

  1. Ricardo: Matt “WordPress” te va a tener que poner un piso…

    Comment by Luis Rull — Tuesday 7/11/2006 @ 7:28

  2. Ricardo,

    Disculpa que exponga esto aquí, (porque no tiene que ver con el post), pero es que no se me ocurria en que otro sitio ponertelo/enviartelo.

    Asunto: necesito consejo (y si el consejo no es acertado, culpa toda mia, de J.A.)

    Quiero instalar una distro linux en mi portatil, (semprom moblile 2600+, 448 ram,38 Gigas).

    Tendre después de limpiar el disco duro como máximo 2 gigas libres, y eso es un dolor de cabeza, ya que pretendo migrar este laptop despacito a linux por completo.

    Pero por el momento hay cosas que no tienen sustitución en linux (Visio,Contaplus,etc). por lo cual deberán de convivir los dos sistemas operativos algun tiempo.

    (a medida lo vaya migrando, aumentare Ext3 linux, y reduzco NTFS).

    Pero no se que distro poner, tengo experiencia en Suse profesional (7.1, la compré). aunque Ahora esta desfasada.

    No se si instalarle Open Suse 10.1 con ofimatica completa y algunas cosas más, (por espacio) ya que le herramientas yast2 las conozco bien.

    O si instalarle una Ubuntu que e probado en live CD, pero es que Ubuntu me parece “sosa” y lo digo con todos los respetos, pues aunque la veo “pobre” por defecto me parece muy muy usable.

    la cosa que estoy más acostumbrado a KDE que es el preferido por Suse. Aunque a la hora de instalar nuevas cosas me dicen que Ubuntu es mejor via Internet, que en Suse o tiras del DVD o tienes más problemas via internet.

    y como mi internet tiene una USB conceptronic CRU54, lo del driver me tiene loco.

    y en eso también me cuentan que es más facil localizarlo en Ubuntu.

    porlo cual:

    Opcion 1: Ubuntu, y descargarse mucho por internet. pero actalizarla más facil.

    Opcion2: open Suse, y descargarse menos (y la conozco más).

    Reconozco que aunque conozca mas Suse + KDE. Ubuntu me parece muy facil en conparación a Suse por lo que la cueva de aprendizaje parece menor.

    Tenia por algun lado la Debian sarge, pero se me a extraviado, y me da la impresión que es demasiado como para empezar con una distro de esa envergadura.
    por compleja y por tamaño (megas).

    Si tienes a bien contestar, te estaría muy agradecido.

    Saludos.

    Comment by J.A. — Tuesday 7/11/2006 @ 9:04

  3. Hola!
    soy nueva en la blogosfera y me recomendaron usar el plugin wp-cache. Especificamente que usara la version 2.0.19 para evitar problemas. Ahora que leo tu recomendacion de que los interesados lo prueben antes de hacerlo ?oficial?, me quedo media preocupada. Exactamente que hace el plugin y cuales son los riegos de instalarlo mal, etc. Ni blog http:www.pensandoenlasmusaranas.com esta hospedado en Dreamhost, que tambien recomienda usar wp-cache.

    gracias

    Comment by Patricia Martin — Saturday 11/11/2006 @ 19:05

  4. oye ricardo crees que seria posible habitarle al wp cache el colmado?

    Comment by Rodolfo Tellez — Monday 13/11/2006 @ 13:23

  5. Hola Ricardo,

    aparte de los problemas que comentas (lo que no hace) lo he probado y funciona bastante bien.

    No lo estoy utilizando en este momento porque parece que hay una cierta incompatibilidad con otro plugin que tengo en el sistema para que los usuarios introduzcan los flash (http://www.kimili.com/plugins/kml_flashembed). Si activo wp-cache me muestra el código de insertar el flash en vez del flash.

    Un saludo.

    Comment by rebuscando — Monday 13/11/2006 @ 18:07

  6. Hola Ricardo,

    I am using your wp-cache plugin, thank you for your work. I just have several comments
    1. it is quite “stupid”, that the original article is only actualised with the new sw version without any notice, so it looks like it is with no progress
    2. I do not know how to test if it works or how much resources it saved, some stats would be usefull
    3. I had also the blank page problem, i solved it with flush, but i do not know if it works with this workaround, or it just seems to work
    4. I do not know what time should i set-up - i generaly want to update the cached page only what I edited the article or someone make a comment, or there was some plugin action (karma votes) or upon administrative request (e.g. on some design/plugin changes). Otherwise it can stay cached. If i understand it well, this plugin does not monitor this, it just change the page every xxx minutes. Maybe (if possible), this would be a good idea for improvement
    5. i read an comment, that it caches also a commentar name etc. - is this bug solved?

    Comment by noname — Tuesday 14/11/2006 @ 14:10

  7. and one more note - it would be great if it could cache gziped pages as well

    Comment by noname — Tuesday 14/11/2006 @ 14:13

  8. #6 hi,

    Answers:

    1. The cache is updated everytime an article is edited or there is a new comments. It’s quite “clever” in this sense :-) Software updates are not related to this, so I don’t understand what you mean.

    2. Check the HTML comments at the end of the page to see the time you saved (when cached pages are served, time is less that a millisecond), and see stats in the wp-cache page. If you want to have more information about _your_ system you should measure it (for example with uptime) with and w/o the cache enabled.

    3. I have no idea of blank pages problem, it should no occur if everything is working. Nevertheless is better to flush all cache files when the plugin is updated (just in case).

    4. The plugin already update cache when an article is updated or a new comment is posted. Nevertheless 3600 seconds is already a big number and should be OK.

    5. Of course, there is no way to do it in another way with the WP architecture. It’s not a bug.

    7. Yes, I know ;.)

    Comment by gallir — Tuesday 14/11/2006 @ 14:20

  9. Gallir, do you think we can install WP cache the colmeichon?

    Comment by noname — Wednesday 15/11/2006 @ 0:01

  10. wp-cache trolleiton would be possible, i think.

    Comment by gallir — Wednesday 15/11/2006 @ 0:32

  11. thanks Ricardo for your answers.
    Ad 1. - i just mean, that when reading the original article, there is no information, that this article is updated - the creation date is from 2005, and there is no links to the this articles, or to some Recent changes document.
    Ad 2. - I see

    or

    Ad 3. blank page problem occurs probably with PHP 5+, the sollution is described in comments bellow original article, replace ob_end_clear() with ob_end_flush() if i remember it right.

    Ad 4. thats fine.

    Ad 5. if it’s true (i haven’t noticed it), it is definitely a bug, maybe not bug of your plugin, but bug of a sollution at whole. I believe, there is always some sollution (workaround) for such things, e.g. somehow switching off prefilling the forms etc.

    Comment by noname — Wednesday 15/11/2006 @ 11:33

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress