Antiguo y abandonado blog de Ricardo Galli :-(

Friday 21/9/2007

WP-Cache 2.1.2

Filed under: Mis hacks — gallir @ 17:27

Still no one has offered to take care of WP-Cache, so I’m still feel obligated to do maintenance releases ;-)

Version 2.1.2 fixes:

  • Recognises also “Content-type” as a “known header” because WP uses the capitalized and small “T” in “type” (?).

  • Removed both quotes from the charset HTTP header, some clients get confused (specially smartphones browsers).

About compression

Due to several unavoidable glitches derived from enabling compression (inside PHP via ob_start()) this WordPress feature is not supported by WP_Cache. If you still need compression it’s better to enable transparent compression in php.ini:

zlib.output_compression = On

It works perfectly with WP-Cache.

If you cannot change it or the your server does not allow to enabled it then you don’t need compression at all, or you should look for a better hosting :-)

24 Comments

  1. WP-Cache 2.1.2 disponible…

    Ricardo Galli ha lanzado la última versión de WP-Cache: 2.1.2. Se trata de una versión de mantenimiento que:

    Reconoce la cabecera “Content-type” como una “cabecera conocida” ya que WordPress usa tanto “Content-Type&#8…

    Trackback by SigT — Friday 21/9/2007 @ 21:18

  2. […] Galli pone a disposición la versión 2.1.2 de wp-cache. Tener este plugin instalado en tu wordpress es casi fundamental, ya que hace que la […]

    Pingback by Tinta Fantasma - Weblog sobre tecnología, diseño, opinión y más — Saturday 22/9/2007 @ 1:26

  3. […] Ricardo Galli, de software libre » WP-Cache 2.1.2 […]

    Pingback by WP-Cache 2.1.2 リリース at orioa — Saturday 22/9/2007 @ 4:09

  4. Dear Riccardo,

    I’ve a urgent problem with plugin wp-cache 2.1.2 on my blog wp 2.0.2,

    the error is:

    “Fatal error: Call to undefined function wp_verify_nonce() in /home/www-tol/rnessish/public/sdamy.com/en/wp-content/plugins/wp-cache/wp-cache.php on line 188″

    Can I’ve your support by payment?

    Thanks and sorry for my english

    Comment by sdamy — Saturday 22/9/2007 @ 8:34

  5. Con WordPress 2.0.11

    He instalado el plugin WP-cache 2.1.2 en UTI. En esto que comienza a
    ir mal. Recupero la antigua, va bien. Pruebo de nuevo, va mal, dando
    error en la base de datos!!!

    Recupero la antigua, y sigue el problema.

    Resulta que el problema afecta a todo el servidor!!!

    O es casualidad o el plugin ha sido el responsable, veremos.

    Bueno, ya vuelve a funcionar…. tras reiniciarse, digo. Con la versión antigua del plugin en cuestión.

    Comment by maty — Saturday 22/9/2007 @ 12:47

  6. Maty, actualiza el wordpress por lo menos a la versión 2.1: http://mnm.uib.es/gallir/posts/2007/01/31/963/

    La 2.0 es muy antigua y hubieron muchos cambios, por eso no está “soportada” desde hace tiempo (desde que se llama 2.1.x).

    Comment by gallir — Saturday 22/9/2007 @ 12:53

  7. Pero la caída de la base de datos del servidor es muy llamativa, digo.

    Cada vez estoy más descontento con el CMS Wordpress, pero no me hacen caso y quieren seguir con él (ayudo a unos cuantos). Creo que la mejor rama, a día de hoy, sigue siendo la 2.0. Días atrás se liberó un exploit que afectaba a todas las versiones 2.* menos a la 2.0.11 precisamente.

    La 2.1 fue desastrosa, y la 2.2 -mejor que la anterior, aunque lo tenía bien fácil- también ha tenido problemas de seguridad. A ver qué dicen los que migran a la recientísima 2.3, por aquello de los plugins.

    Ahí radica otro problema habitual en WP. Tengo muy optimizadas las bitácoras con WP 2.0.11, con los plugins más útiles y ficheros del CMS modificados por mí por aquello de la seguridad (no entra spam ni tan siquiera en moderación desde junio).

    Si por mí fuese, Serendipity para monoblogs y b2evolution para multiblogs.

    Comment by maty — Saturday 22/9/2007 @ 13:32

  8. Acabo de mirar, y la versión antigua del plugin es la WP-cache 2.1.1 (justo la anterior a ésta), que ha funcionado correctamente todo este tiempo con Wordpress 2.0.*

    Quienes estén interesados en WP 2.3 RC1

    AlexSEO ahora está en Wordpress 2.3

    “Pues si debo describir Wordpress 2.3 en una palabra, os puedo decir esta: WOW.

    Realmente he sentido una enorme diferencia comparada con Wordpress 2.2, Wordpress 2.3 realmente es más rápido (a nivel del dashboard), también la parte de administración de Widgets se ve bien (antes se salía del recuadro), las etiquetas son muy útiles y fáciles de usar e instalar.”

    Mejor esperar unos días, no vaya a ser…

    Comment by maty — Saturday 22/9/2007 @ 13:55

  9. I’ve a problem that I’m not able to solve.
    Cache doesn’t refresh on new comments, my blog in on Dreamhost and I use PHP 5+MySQl 5.
    The very strange think is that on a test blog (http://test.davidesalerno.net) with the same theme and the same pluins everithing works fine.
    Any ideas?
    Thanks to all

    Comment by Davide Salerno — Saturday 22/9/2007 @ 21:22

  10. […] Galli se ha lanzado a actualizar su plugin para cacheo de páginas y entradas en Wordpress, WP-Cache: 2.1.2 es una versión de mantenimiento en la que destacan los siguientes […]

    Pingback by Ricardo actualiza su WP-Cache - Carrero Bitácora de los Hermanos Carrero, David Carrero Fernández-Baillo y Jaime Carrero Fernández-Baillo. — Sunday 23/9/2007 @ 15:19

  11. Saludos de parte de un alumno de ASO ^^

    Tengo un pequeño problema en mi blog (WP 2.0.4, link arriba) con wp-cache tanto en su versión 2.1.1 como en 2.1.2. Desde esta mañana, y sin haber tocado nada, la página ha dejado de cargar si wp-cache está activo, dando el siguiente error:

    Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 32505 is not allowed to access /home/s03d7073/public_html/blog/wp-content/cache/wp_cache_mutex.lock owned by uid 99 in /home/s03d7073/public_html/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 96

    Warning: fopen(/home/s03d7073/public_html/blog/wp-content/cache/wp_cache_mutex.lock) [function.fopen]: failed to open stream: Permission denied in /home/s03d7073/public_html/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 96
    Couldn’t write to: /home/s03d7073/public_html/blog/wp-content/cache/wp-cache-04ba10a714492ca3cb47f521dc07c9aa.html
    Warning: flock() expects parameter 1 to be resource, boolean given in /home/s03d7073/public_html/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 105

    Warning: fopen() [function.fopen]: SAFE MODE Restriction in effect. The script whose uid is 32505 is not allowed to access /home/s03d7073/public_html/blog/wp-content/cache/wp-cache-04ba10a714492ca3cb47f521dc07c9aa.meta owned by uid 99 in /home/s03d7073/public_html/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 240

    Warning: fopen(/home/s03d7073/public_html/blog/wp-content/cache/wp-cache-04ba10a714492ca3cb47f521dc07c9aa.meta) [function.fopen]: failed to open stream: Permission denied in /home/s03d7073/public_html/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 240

    Warning: fputs(): supplied argument is not a valid stream resource in /home/s03d7073/public_html/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 241

    Warning: fclose(): supplied argument is not a valid stream resource in /home/s03d7073/public_html/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 242

    Warning: flock() expects parameter 1 to be resource, boolean given in /home/s03d7073/public_html/blog/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 114

    Realmente, por volumen de visitas, no tengo necesidad de usar wp-cache, pero reporto el error por si es de utilidad para algo.

    Un saludo.

    Comment by Nosgoroth — Sunday 23/9/2007 @ 20:50

  12. #11, eso parece un problema de restricciones porque han habilitado el “safe mode” en Apache/PHP.

    Comment by gallir — Sunday 23/9/2007 @ 20:56

  13. Warning: semget() failed for key 0×152b: Permission denied in /home.2/p/c/r/pxx/ixxxxxxxo/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 98

    This mistake shows everywhere.

    How to do to not cache footer.php?

    Comment by koben — Monday 24/9/2007 @ 21:28

  14. This seem to be not working with WP 2.3, it it’s not caching anything

    Comment by al — Tuesday 25/9/2007 @ 10:22

  15. […] WP-Cache 2.1.2 WordPress Database Backup 2.1.3 Google XML Sitemaps 3.0 WP-PageNavi 2.11 […]

    Pingback by 更新到 WordPress 2.3 的问题 - Nicky's blog — Tuesday 25/9/2007 @ 18:49

  16. For people who are still having Errors 500 (Internal server Error), mostly those who are with GoDaddy, I’ve found a fix that WORKS!

    Comment by Dave — Wednesday 26/9/2007 @ 23:47

  17. Hi, I found some issues when I upgraded to Wordpress 2.3: the administration page no longer works.

    I’m using Windows hosting, previously I followed instruction by Digital Bites and Unsought Input and everything works fine.

    The problem is than $_SERVER[’REQUEST_URI’] not contains options-general.php and POST will fail with HTTP 405. I hacked wp-cache.php replacing all occurences with $_SERVER[’PHP_SELF’] . ‘?page=’ . basename(__FILE__). Notice than I used basename(__FILE__) to get rid of slashes issues in Windows.

    Comment by Davide Bia — Thursday 27/9/2007 @ 10:59

  18. Hi,

    I get the same error than many people with this semget call. I changed the sem_id as I saw somewhere but nothing changed.
    Do you have an idea ?

    Comment by Ghusse — Thursday 27/9/2007 @ 18:45

  19. […] about 2 weeks late, but here it is. Ricardo has made an official release that fixes the Content-type problem in the header. I have updated WP-Cache NoSymlink accordingly, […]

    Pingback by WP-Cache NoSymlink 2.1.2 Released — Thursday 4/10/2007 @ 7:56

  20. Respecto a lo que comentas de la compresión transparente, si no puedes editar el archivo php.ini (por ejemplo, porque tienes el WP alojado en un hosting) se puede intentar de otra forma, si tu hosting soporta archivos .htaccess. Simplemente añadir la línea

    php_flag zlib.output_compression On

    en dicho archivo (o crearlo si no existe). La compresión es importante, porque muchos hosting cobran por ancho de banda, y en mi caso supone un pequeño ahorro ;)

    Comment by Boriel — Sunday 7/10/2007 @ 2:51

  21. There is a problem with WP-Cache and RSS feeds, serving them as text/html. Dougal Campbell made a fix (yep, it works) for WP-Cache 2.1.1. Perhaps you could include the fix in a new version of WP-Cache?

    Aforementioned fix and description is located here:
    http://dougal.gunters.org/blog/2007/06/19/wp-cache-fix-for-content-type-in-feeds

    Comment by Bantai — Thursday 11/10/2007 @ 23:41

  22. I should add that there is one questionable change in the diff, which I removed as I suspect it to be a security hole:

    - wp_cache_is_rejected($_SERVER[”REQUEST_URI”]))
    + wp_cache_is_rejected($_SERVER[”REQUEST_URI”]) &&
    + stripos($_SERVER[”REQUEST_URI”],’wp-cache-fix’) !== false)

    If the required string `wp-cache-fix` is not in the URL, any files that should be rejected will be cached anyway.

    Comment by Bantai — Friday 12/10/2007 @ 1:07

  23. It’s a pity that wp-cache is not working “out of the box” for the wordpress installation on Windows environment. I know you hate windows, most of us does hate it too. But sometimes we can’t choose the OS we work with. We try to do our best with all that we have. In my case, it means Windows + XAMPP. It’s not a debate on what’s best, it’s the background for running a platform independent language, PHP.
    All the scripts I use have no really problems running on PHP on windows, wp-cache is an exception :(

    I see that your work is beautiful and so useful for so many people. I wish I were one of them.

    Comment by bluemamba — Wednesday 17/10/2007 @ 0:04

  24. Luckily there is WP-Cache NoSymLink for Windows.

    Comment by Bantai — Wednesday 17/10/2007 @ 13:54

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress