Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Cómo instalar y configurar W3 Total Cache para principiantes

La velocidad del sitio web es crucial para la experiencia del usuario, el SEO y las conversiones. Un sitio web lento puede frustrar a los visitantes, llevándoles a abandonar su sitio antes incluso de tener la oportunidad de explorar su contenido. Por eso utilizamos un plugin de caché para que nuestros sitios web funcionen rápido.

W3 Total Cache es un popular y potente plugin de caché para WordPress que puede mejorar drásticamente el rendimiento de su sitio web. Crea versiones estáticas de tus páginas, reduciendo la carga del servidor y entregando el contenido a los visitantes mucho más rápido.

Esta guía para principiantes proporciona instrucciones paso a paso para instalar y configurar W3 Total Cache en su sitio web WordPress. Te explicaremos las principales funciones y ajustes para que puedas optimizar la velocidad de tu sitio y crear una experiencia más fluida y agradable para tus usuarios.

W3 Total Cache installation and setup guide for WordPress beginners

Nota del editor: Ya no usamos W3 Total Cache en nuestro sitio web y hemos cambiado a WP Rocket, un plugin de caché premium. W3 Total Cache sigue siendo una buena solución que funciona bien.

¿Qué es W3 Total Cache?

W3 Total Cache es uno de los mejores plugins de caché de WordPress que le permite mejorar fácilmente el rendimiento y la velocidad de WordPress.

Por defecto, WordPress utiliza PHP para generar dinámicamente cada página de su sitio web cuando es solicitada por un usuario.

PHP es un idioma de programación del lado del servidor. Esto significa que cada petición de un usuario aumenta la carga de su servidor. Esto afecta al rendimiento de su sitio web, a la experiencia del usuario y al SEO.

Los plugins de caché de WordPress le ayudan a reducir este problema omitiendo PHP y sirviendo una copia en caché de su página web.

How caching works

También le permite conectar fácilmente su sitio web a una CDN (red de distribución de contenidos) para mejorar aún más el rendimiento de su sitio web.

Instalación de W3 Total Cache en WordPress

Antes de instalar el plugin W3 Total Cache en WordPress, deberá asegurarse de desactivar cualquier otro plugin de caché de su sitio web. Esto te ayudará a guardar o ahorrar recursos del servidor y evitar conflictos entre plugins.

Una vez hecho esto, puede instalar y activar el plugin W3 Total Cache. Para más detalles, consulta nuestra guía paso a paso sobre cómo instalar un plugin de WordPress.

Una vez activado, W3 Total Cache añadirá un nuevo elemento / artículo de menú llamado Rendimiento a la barra lateral del administrador de WordPress. Al hacer clic en él, se iniciará el asistente de configuración del plugin.

W3 Total Cache set up

Basta con hacer clic en el botón Siguiente para continuar.

En primer lugar, se le pedirá que active la caché de página. Haga clic en el botón Probar caché de página para continuar.

Configure page cache

W3 Total Cache le mostrará diferentes opciones de motor de almacenamiento. Debe elegir la que le ahorre más tiempo. Normalmente, será la opción ‘Disk: Mejorado’ en la mayoría de las plataformas de alojamiento compartido.

Haga clic en el botón Siguiente para continuar.

Ahora, se le dará la opción de Probar Caché de Base de Datos. Le recomendamos que elija Ninguno. Para la mayoría de los sitios web pequeños y medianos, su servidor MySQL podrá obtener los datos más rápidamente que la caché de base de datos.

Database cache

Haga clic en el botón Siguiente para pasar al paso siguiente.

Esto le llevará a la sección Caché de objetos. La caché de objetos permite a W3 Total Cache almacenar consultas de base de datos para páginas dinámicas y reutilizarlas para mejorar el rendimiento.

Object cache in W3 Total Cache

Si el resultado de la prueba muestra apenas unos milisegundos de diferencia, puede elegir Ninguno.

Haga clic en el botón siguiente para continuar.

A continuación, haga clic en el botón Probar caché del navegador y seleccione la opción “Activado” en los resultados de la prueba.

Browser cache

Esta opción solicita al navegador / explorador del usuario que almacene una copia de la página web durante un tiempo limitado. Cargar una página desde la caché de un navegador es mucho más rápido que cargarla desde la caché de su servidor web.

Haga clic en el botón siguiente para pasar al paso siguiente.

Por último, el asistente de configuración le pedirá que active la carga diferida para las imágenes.

Actualmente, WordPress incorpora la función de carga diferida de imágenes. Sin embargo, algunos navegadores antiguos pueden no ser compatibles con esta característica.

W3 Total Cache utiliza JavaScript para añadir carga diferida a las imágenes, lo que puede resultar aún más rápido y eficaz.

Enable Lazy Loading

A continuación, haga clic en el botón Siguiente para finalizar el asistente de configuración y ver el Escritorio de W3 Total Cache.

Opciones avanzadas de caché en W3 Total Cache

Los ajustes básicos sirven para la mayoría de los sitios web. Sin embargo, hay muchas opciones avanzadas que puede configurar para mejorar aún más el rendimiento.

Veamos las más importantes.

Minimizar JavaScript y CSS en W3 Total Cache

El término “minimizar” se utiliza para describir un método que reduce el tamaño de los archivos de su sitio web. Para ello, quita espacios en blanco, líneas y caracteres innecesarios del código fuente.

Nota: Minimizar los archivos JS y CSS puede potencialmente romper su sitio web. Si la activa y su sitio web no se ve bien, simplemente desactive estas opciones.

W3 Total Cache también permite minimizar fácilmente el código fuente JavaScript, CSS y HTML. Sin embargo, recomendamos minimizar solo los archivos JavaScript y CSS.

Simplemente diríjase a la página Rendimiento ” Minimizar y desplácese hasta la sección JS.

Enable JS minify in W3 Total Cache

Marque la casilla siguiente a ‘JS minify settings’ para activarlo.

Ahora, desplácese hasta la sección CSS y active los ajustes de minimizar CSS de la misma manera.

Enable CSS minify

No olvides hacer clic en el botón Guardar todos los ajustes para guardar tus ajustes.

Para métodos alternativos, consulte nuestra guía sobre cómo minimizar archivos JavaScript y CSS en WordPress.

Activación de la compatibilidad con CDN en W3 Total Cache

Las CDN o redes de distribución de contenidos le ayudan a mejorar aún más el rendimiento de su sitio web sirviendo archivos estáticos como imágenes, CSS y JavaScript desde una red global de servidores.

Esto reduce la carga de su servidor de alojamiento de WordPress y mejora la velocidad de carga de la página.

W3 Total Cache es compatible con / da soporte a varias plataformas CDN.

Recomendamos usar Bunny. net que es la mejor solución CDN del mercado. Esto es lo que usamos para nuestro sitio web OptinMonster.

En primer lugar, debe registrarse para obtener una cuenta en Bunny.net. Después de registrarse, debe crear una Pull Zone para su sitio web.

Bunny CDN dashboard

Una zona pull añade un hostname a Bunny.net CDN. Este hostname se utiliza para servir archivos estáticos para su sitio web.

Añada un nombre para su zona de extracción y, a continuación, indique el nombre de dominio de su sitio web.

Create pullzone

Después de añadir la pullzone, tienes que visitar la página Rendimiento ” Ajustes generales.

A continuación, desplácese hasta la sección CDN.

Enable CDN

Marque la casilla Activar situada junto a la opción CDN y elija Espejo genérico junto a la opción Tipo de CDN.

No olvides hacer clic en el botón Guardar todos los cambios para establecer los ajustes.

A continuación, visite la página Rendimiento ” CDN y desplácese hasta la sección Configuración: Objetos.

Add CDN hostname

Desde aquí, tienes que añadir el hostname que creaste anteriormente para tu pullzone y hacer clic en el botón de test mirror.

W3 Total Cache comprobará la disponibilidad de su hostname y mostrará el mensaje Test Passed cuando sea correcto.

Ahora puede hacer clic en el botón Guardar todos los cambios para establecer los ajustes.

W3 Total Cache empezará a servir sus recursos estáticos desde el servidor CDN.

W3 Total Cache también funciona bien con Cloudflare CDN gratuito. Alternativamente, también puedes usarlo con Sucuri, que es el mejor servicio de cortafuegos de sitios web con servicio de CDN integrado.

Diagnosticar problemas con W3 Total Cache

Una vez que haya configurado W3 Total Cache correctamente, debería funcionar sin problemas en segundo plano para mejorar la velocidad de WordPress y aumentar el rendimiento.

Ocasionalmente, puede encontrarse con problemas por los que no vea inmediatamente los cambios realizados en su sitio web, o puede que un plugin no funcione correctamente.

La razón más común de estos problemas es que probablemente esté viendo una versión antigua en caché de su sitio web.

Esto se puede corregir fácilmente vaciando la caché en WordPress.

Simplemente haga clic en el menú Rendimiento en la parte superior y luego seleccione la opción Purgar todas las cachés. W3 Total Cache vaciará todo el contenido almacenado en caché de su sitio web.

Clear all cache in W3 Total Cache

Si sigues viendo la versión antigua de tu sitio web, intenta vaciar también la caché de tu navegador.

Esperamos que este artículo te haya ayudado a instalar y configurar W3 Total Cache en WordPress. Puede que también quieras ver nuestra guía sobre cómo aumentar la velocidad de carga de las páginas en WPBeginner y nuestra selección experta de los mejores plugins de caché de WordPress para acelerar tu sitio web.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Descargo: Nuestro contenido está apoyado por los lectores. Esto significa que si hace clic en algunos de nuestros enlaces, podemos ganar una comisión. Vea cómo se financia WPBeginner , por qué es importante, y cómo puede apoyarnos. Aquí está nuestro proceso editorial .

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

El último kit de herramientas de WordPress

Obtenga acceso GRATUITO a nuestro kit de herramientas - una colección de productos y recursos relacionados con WordPress que todo profesional debería tener!

Reader Interactions

162 comentariosDeja una respuesta

  1. Francis

    Good and Quality tutorial
    thanks Syed Balkhi.
    this really helped me

  2. Raj singh

    I have an issue with this plugin , when I trying to update this plugin it failed and after fails when I Refresh my wordpress site .
    It says under maintenance come back after few hours.
    So I leave and came back after few hours but after few hours when I try to open my site .
    It’s Totally blank , Nothing is show on my Site.
    Only white page comes when I Try to open.

    So now what should I do ?

    Please help me…

  3. Derek C

    Thank you so much! I was about to go pay an extra $15 a month for cloud based hosting because my blog had gotten so slow at times it was unbearable! I had setup W3 Total Cache and just enabled everything.

    I didn’t recognize it until going through your guide, but this was the main reason my dashboard and WP console was taking FOREVER to do anything. Sometimes I would wait 20-30 seconds just to create or save a post. Now it is like 2-3 seconds at the max. Also, my site loads even faster with a lot of that junk turned off.

    I am on a shared hosting plan, and I guess all of the caching was actually bottlenecking the CPU or something…. Anyhow, thanks for such a useful guide!

  4. Pronob

    thanks a lot for this article.i was searching for this.

  5. Amit

    Dear sir,

    I use your guide with w3 total cache but facing the issue of rendering CSS file. This is link of my blog How its work

    Can I use Cloudfare with subdomain CDN ? Is it speed up loading time?

  6. Rahul Rampal

    Hi, I have a problem with My yoast sitemaps not rendering. A blank screen appears when I click it. My question is should I include or exclude Sitemap.xsl file in custom file settings in CDN?
    Kindly advice.

  7. Dinuka

    What is ‘server response time’? And how to reduce it?

  8. Mody Star

    Hello , I’m using w3 Total Cache on multisite wordpress … I want to exclude certain site from being excluded
    mysite.com/ms/
    mysite.com/ms/2/
    mysite.com/ms/3/
    mysite.com/ms/4/
    mysite.com/ms/5/
    mysite.com/ms/6/
    I want to exclude the whole mysite.com/ms/4/ site from being cached
    and what about exclude caching of certain plugin on mysite.com/ms/5/
    Help me Please :)

  9. Utkarsh

    I did the settings of W3 total cache plugin and the favicon of my website stopped appearing. Can you please check it

  10. Jon

    I downloaded plugin and now its loading slower.

    Each time I test in pingdom the % faster than other sites decreases.

    Its only a 1 page site at this time.

  11. Ian Smith

    I recently set up W3 Total Cache with the Rackspace Cloud Files CDN. It all works, but I had expected the media files in the wp-content/uploads folder to only be posted in the CDN rather than on the server. Instead, media uploads now go to both the CDN AND the wp-content/uploads folder. Is this what is supposed to happen? It seemed unnecessarily redundant to me.

    • WPBeginner Support

      Yes, but the images on your server are stored so that you can end using CDN service anytime you want, or move to another service, or to create backup using WordPress backup plugins. However, your visitors will be served images from the closest CDN server instead of your site.

      Administrador

  12. Himanshu Grewal

    MAXCDN is free ir not??

  13. Ian

    Hi,

    Are you still using maxcdn on this site? I’m trying to decide between maxcdn and keycdn. I noticed this post was from a few years ago and wondered if your thoughts about maxcdn are still the same?

    Thanks

  14. Bart Percy

    Superb site you have here but I was wondering if you knew of any forums that cover the same topics discussed in this article? I’d really like to be a part of group where I can get feedback from other knowledgeable individuals that share the same interest. If you have any suggestions, please let me know. Bless you!

  15. ROSANNA

    Hi ! I installed yesterday Super Cache because it seemed easier to configure than W3 Total Cache but this morning my site was very very very slow… So I decided to follow your tutorial step by step and change plugins.
    So, the first step was to deactivate the first plugin, so I clicked deactivate Super Cache and my whole site crashed !!! I get this message : 503 SERVICE UNAVAILABLE no server is available to handle this request.
    I don’t know what to do. Can you help ?

  16. Anant

    Minify via disk is currently disabled

    I tried to check the box and when I save after the refresh, it’s disable. enabling it 100 times over still results in an unchecked box, and the message “Minify via disk is currently disabled. Anyone know how to fix that ?
    Thank you

    Reply

  17. TJ

    Thank your this tutorial. I have used it for a couple of my sites.

    One thing, which might be a “duh” situation… But, I had my site in “Maintenance Mode” using SeedProd’s Coming Soon Pro. I did not see the CDN in front of the image urls until I turned off maintenance mode. Then, when I turned it back on again, they were gone again.

    Just in case someone needs this information :-)

  18. Rahul

    hi there, thanks for making this post for wp beginners. i’m also using wp total cache plugin for . could you help me or check my website what is problem in this becasie i’m not getting hits pls help me a humble request to u
    thanks

  19. Jewel

    Hello,
    I appreciate so much, your posts. They have helped me learn a bit about setting up my website. However, this particular post led me to check a bunch of boxes under”Performance » Browser Cache” that took me from faster than 91% down to faster than 71% on speed. I had checked them just as you have in your picture above. I unchecked all your suggested boxes and got back to 84%. (on Pingdom) This was the only change I made. I don’t understand why it made things slower, or why I couldn’t get back to my original speed. If you could explain this I would appreciate it. Thanks.

    • WPBeginner Support

      A lot of reasons can show you conflicting results when you are expecting something different. For example, you may have forgotten to save plugin settings, your server is particularly under heavy traffic at that time. Make sure you enable gzip compression as we have shown above, then test.

      Administrador

  20. sojib

    I am not using this cace plugin anymore. Using now wpfc two of my site. simple and faster then other plugins.

  21. Tea

    Thanks for the tutorial…really helpful
    However my website is slower then before.

    I also have these performance issue “Remove query strings from static resources”.

    I haven’t enabled database caching and Minify as per your insutrctions as yet…also don’t have CDN service.

    before my website was faster.
    Any thoughts?
    Thanks
    Tea

    • WPBeginner Support

      How are you checking your website speed and performance? We recommend testing with pingdom using different locations. If it is still slow, then try resetting the plugin and follow the setup instructions again.

      Administrador

      • Tea

        yes using pingdom to test and speed is 2.55s…I think we can do better :)

        All my performance scores are 100 or 95 the lowest, but the “Remove query strings from static resources” is at 12.

        Any suggestions?

        Many thanks
        Tea

  22. Lifa

    This has to be one of the best if not the best Wordpress learning sites ever! Detailed and very easy to understand modules. Thank you for all your hard researched work.

  23. Penelope

    THANK YOU FOR MAKING THIS! I’m EXTREMELY cautions on the plugins I install from horror stories. I’ve also heard horror stories about this very plug in. Therefore, I research as much as I can: tutorials, forums, reviews, troubleshooting etc. I am going to follow your tutorial exactly. My server says my site is too large, 500kb, and needs to be gzipped. [sigh] Another plugin to search.

    Helpful note: You may have a downloadable instructions on your site somewhere & I am not see it. But It would be helpful if I could download to print OR this was print friendly. you have have link but I am not seeing it.

    –Penny

  24. Keami

    When I check the box for enable for page cache and click save all setting it doesn’t stay checked. Help please?

  25. reza

    Please Inform That if Enable Object Cache is checked may cause very slow or accessible admin panel after some times as happened to me and i have to disable object cache and after that i have no problem with this Great plugin

    TnX for your tutorial too

  26. deepa tiwari

    Thanks for sharing . I tried to install W3 total cache showing Error not Available for you. How to fix it. Please help me

  27. Manu

    i always come back for W3 Super Cache settings after messing-up with the plugin and i never back or restore its settings :P because i know where to look for it.

    Thanks Wpbeginner for this awesome tutorial.

  28. tracey sharp

    Many thanks for this really detailed step by step guide. I’ve installed google adsense along with a couple of other plug ins and my load time seems to have almost ground to a halt. I’ve installed Total Cache which has helped a little but I’m not sure what to do next. I’ll keep looking!

  29. Hasnain Abid Khanzada

    I have one question that as we know that when we open any new website then browser cache it so then why we need any plugin for improving cache performance?

  30. Muhammad Imran

    Hello WPB team,
    I have connect MAxCDN by following all the guidlines as suggested in the article. But after some days my 99% images de-indexed in Google. Please is there any tutorial to FIX this? Will be very thankful to you for the help.

    Thanks

  31. Tristian

    Hi,

    I do have one question, when static pages are created for example you have 200 pages and just installed and set up W3 cache. So now when static pages will be created for all those 200 sites.
    Do you have to load it manually every site by site in your browser ? I understand that this action takes some time so when exactly those sites are created ( static copies on a disk) ?

  32. Ali Emami

    Hi
    When I Click on “Specify it here” link, W3 Total Cache does not take me to the CDN page
    I go to this address:
    http://example.com/#configuration

    What should I do?
    Help me please

    Thank You

  33. Nabeel

    This page is at 91 score on pingdom

  34. Sacha

    Thank you! I was having a lot of trouble with this plugin and now I have it working perfectly!

  35. Abhishek

    Hi team,

    Awaiting the update for this post, I use Cloudflare (free) with wordpress and my GTMetrix results are now anything but good. The blog I need help with is:
    Thanks!

  36. Sandy

    I installed the W3 plugin and it works great alone, however when I setup and account with a CDN my whole site slowed down to less than half the speed. From 2 seconds to sometimes 6 seconds on average.
    I think the CDN part is of no value if you have a good host server. Digital Ocean has very good performance alone.

    Best

  37. Palla Sridhar

    How do I use Cloudflare with W3TC. Is there no support for it.

    • Morgan Cole

      I also need integration with Cloudflare. Please Help!

  38. Lynne Adams

    I have used this tutorial every time I install the W3 Total Cache plugin with no problem. This time I went a step further in your tutorial and under Performance » Browser Cache page for more settings I checked the ones you recommend. When testing the site on PageSpeedGrader I get an error that reads

    DataTables warning: table id=recommendations – Cannot reinitialise DataTable. For mor information about this error, please see .

    Is this something to be concerned with?

  39. Debbie Bridge

    Just wondering does it matter if your site is a wordpress.com rather than a wordpress.org for this plugin?

  40. Lyheang IBell

    W3 Total Cache error:It appears Minify URL rewriting is not working. Please verify that the server configuration allows .htaccess
    Unfortunately minification will not function without custom rewrite rules. Please ask your server administrator for assistance. Also refer to the install page for the rules for your server.
    Technical info ?

  41. Julian

    I think this post needs an update.

  42. D

    I like how people ask questions and the author never replies. Are you guys in the business or helping people or link bait in order to sell/”recommend” paid plugins and such?

    Just answer people’s questions a little and the rest of the web won’t think of you as poorly.

  43. Arsalan Mughal

    I am using Godaddy’s wordpress managed hosting on . I want to install W3 Cache plugin because of so many options in it. But the button for W3 Cache “Install Now” is disabled and show “This plugin is not allowed in our system…”. I talked to Godaddy support team but they said you need not to worry about any cache plugin and you can’t install W3 Cache as there is also a tool option “Flush Cache” in wordpress bar.
    So, i just want to know from you, is there any possibility that i can be able to install W3 Cache plugin? If not, Is there really no need of Cache plugin in WP managed hosting by godaddy.
    Can you guide briefly?
    Thanks

    • WPBeginner Support

      Managed hosting providers sometimes use their own caching systems and optimize their servers for optimal performance. Sometimes they may block plugins that they believe will cause conflicts with their servers. If your host is blocking a plugin then it is best not to use that plugin or move to a host that supports your desired plugin.

      Administrador

  44. Kate

    Hi there! Hoping you can help. Yesterday I downloaded the plugin & followed your instructions. I haven’t done anything about CDN yet. (FYI The plugin seems to look a bit different to your video screenshots… More fields are prepopulated). Anyway, whilst the site is faster (yay!) I noticed this morning that my new post which published today isn’t appearing on my homepage ( which all new posts usually do). It’s just appearing in it’s nominated page. I wondered if you knew what the issue might be? Is something ticked in the plugin which shouldn’t be?
    Thanks, Kate

  45. Adam Thomas

    Wow, followed the video instructions and my website used to be “70% slower than all websites”. It’s now “61% FASTER than all websites tested” on Pingdom.

    Thanks a bunch for the video. Everyone says use W3 Total Cache but I never knew how to actually set it up. I was getting really frustrated at my 10+ seconds loading time.

    Now down to 2.49 seconds. Not perfect but much better considering this is the only thing I’ve done to try to improve speed.

    Thanks again!

  46. Mathieu

    Hi and thanks for another very well written article. This website is definitely becoming a reference for me.
    I was about to signup on MaxCDN and follow all the steps when I realise that my hosting provider doesn’t allow me to edit the DNS. It isn’t one of your recommended hosting providers for wordpress and I start to understand now why :)
    Anyway, I talked to my hosting provider and its suggestion was to add a subdomain service to my hosting. This optional subdomain service includes DNS configuration. So assuming my website is http://www.website.com, I could add a subdomain like example.website.com with DNS options.
    Now the question is: would it work the same way? Or MaxCDN needs to create the subdomains itself? Also, considering that my website would still run on the main domain and not on the subdomain. So I would activate that subdomain just to be able to edit DNS really.
    I hope that I explained myself clear enough, I admit that this is still a little bit complicated for me to understand.
    Thanks.

  47. Richelle

    Hi! I’ve been trying to get W3 Total Cache to work forever, but I’m always having issues. I followed all your instructions above, and right now it says:

    New Relic is not running correctly. The plugin has detected the following issues:

    PHP module is not enabled.

    PHP agent is not enabled.

    API Key is invalid.

    Account ID is not configured.

    Application ID is not configured. Enter/Select application name.

    License key could not be detected.

    A configuration issue prevents CDN from working: The “Authorization key” and “Replace default hostname with” field(s) cannot be empty.You need to select / create a pull zone. Specify it here.

    I honestly have no idea what all this stuff is and how to fix it…

  48. stooni

    show where there are linked, check the File Rigts!
    —- stooni

Deja tu comentario

Gracias por elegir dejar un comentario. Tenga en cuenta que todos los comentarios son moderados de acuerdo con nuestros política de comentarios, y su dirección de correo electrónico NO será publicada. Por favor, NO utilice palabras clave en el campo de nombre. Tengamos una conversación personal y significativa.