Hoy nos vamos a centrar en aprender a usar WP Super Cache en el Blog from WordPress. Hay dos grandes plugins que pueden ser usados para el propósito de los plugins de cacheo: WP Super Cache y W3 Total Cache. Dependiendo de tus necesidades uno de ellos debe ser habilitado en tu blog, pero hoy sólo vamos a discutir cómo usar WP Super Cache en el blog de WordPress.
Lo que hace WP Super Cache es que toma los archivos PHP de WordPress dinámico de tu blog y los convierte en archivos HTML estáticos. El beneficio de este archivo es que es menos pesado que el archivo PHP real y aumenta la velocidad de carga de la página, lo que en última instancia hace que el visitante se sienta feliz, ya que a nadie le gusta esperar. Con el aumento de la velocidad de carga de la página, los search engines tienen más probabilidades de indexar sus páginas y mostrarlas a los visitantes potenciales.
Bueno, la mayoría de lo anterior es cierto, pero hay un inconveniente, el archivo HTML estático se servirá a la mayoría de los usuarios, excepto a los que estén conectados a su sitio Web o hayan dejado un comentario en su blog. Esta parcialidad se debe a que cuando el Username está conectado o ha dejado un comentario en su blog se muestra con su nombre en lugar del archivo estático, por lo que son manejados por el motor de almacenamiento en cache heredado.
Introduces the WP Super Cache:
- Permitirle usar la Red de Entrega de Content (CDN) junto con el sistema de caché.
- Compressed web pages to reduce loading time.
- Caching available for PHP pages too
- Caching is also available for mobile devices and tablets.
How to use WP Super Cache on WordPress blog
Para usar WP Super Cache en el blog de WordPress, primero debes instalar el plugin. Veamos cómo hacerlo, ve a tu cuenta de administrador y desde Plugin> Add New, busca WP Super Cache y luego instala y activa el plugin.
Once the plugin is installed, it will display the following message:
WP Super Cache is disabled. Please go to the plugin administration page to enable caching.
You need to enable the WP Super Cache plugin before you can use it, just click on "admin page plugin" and you will be directed to the WP Super Cache settings.
Configure WP Super Cache
Check the box next to Caching On (Recommended) to enable WP Super Cache and click the Update Status button to save the changes.
Now we are going to check if the plugin works or not by clicking the test cache button under Cache Tester. If everything goes accordingly, then you would see something like this:
If for some reason you want to clear your cached pages, click the Clear Cache button and you're done.
In the Advanced Options these 4 settings are made:
- Caching
- Miscellany
- Advanced
- Cache location
Let's talk about each of them and see how to use the Wp Super Cache settings to the fullest.
Caching
Check the Cache hits to this website for quick access (Recommended) box to enable caching.
There are three options available for caching below and by default PHP will be used to serve the cache files, but we don't want to involve PHP as this will increase the page load time. So, click on the radio button next to "Use mod_rewrite to serve cache files" which is the fastest method to deliver your HTML files without involving the PHP engine.
Miscellany
In Miscellaneous enable the Compress pages options since this option is disabled by default. This option helps reduce the overall page load time.
Enable option 304 no Modified browser caching that indicates whether or not a page has been modified since the last request. Enable option Don$0027t cache pages for known users as it allows the administrator and users to see the real pages without any caching.
Enable the No Cache option with GET parameters because these requests are processed through PHP engines and then enable the rebuild cache option.
Advanced
Enable mobile device support which obviously makes Wp Super Cache compatible on mobile devices. Then enable the option Clear all cache files when an entry or page is published if it has a long cache expiration date, or leave this option as is.
Enables additional home page checks so that the home page cache stops unexpectedly to check if it is working properly. Also, enable the Only refresh current page when comments are made option to show the PHP page to the user again when they comment.
Cache location
Good news, you don't even need to touch this option, leave it as is.
Once you are done with all the above settings, just click the Update Status button. After the page refreshes, you'll see some modes rewrite the rules just below the advanced settings, like this:
Just click on the Mod_rewrite rules update and once completed you will see something like this:
Well I guess you have learned all about the advanced settings and can teach others how to use the WP Super Cache plugin efficiently. But there are still a few more settings you need to know before you go.
Expiration time and garbage collection
Aquí se establece el tiempo y la frecuencia de validez de los datos almacenados en su server. Por defecto, el tiempo de espera de la caché está establecido en 1800 segundos, pero si tienes un gran número de artículos en tu sitio, entonces establece un tiempo menor.
The following is Accepted filenames and Rejected URIs, here you can disable the following types of pages for caching according to your need:
- Individual posts
- Search Pages
- Author Pages
- First page
- Category
- Records
- pages
- Food
- Home
- Tags
Well, you don't have to mess with this busy scene.
Enable CDN support
To enable CDN support with the WP Super Cache plugin, you need to check the Enable CDN support box (Make sure you have selected the CDN tab next to advanced settings).
A continuación, introduzca su Url local o la URL externa como http://cdn.test.adityafarrad.com/wp-includes/js/prototype.js y haga clic en Guardar cambios.
Content
The next tab is "Content", which is adjacent to the CDN. Here you can regenerate the cached statistics as they are not generated automatically. You can also clear expired pages and cache.
Preload
The preload option caches all the pages and posts on your website and then serves the static version to all visitors. This option defaults to 0, which is actually a disabled state. The minimum time required is 30 minutes and you also have to enable all the preload options to really benefit from this plugin.
Next, click Refresh settings and after the page refreshes, click the Preload cache now button. You'll see a drastic improvement in your page loading speed once the cache starts building for your site.
We hope this article has been useful to you and that you have learned how to use the WP Super Cache plugin on the WordPress blog. Once you've implemented the above settings, your site's loading speed will dramatically increase. If you still have any questions regarding this post, feel free to ask them in the comments.
Do you have any suggestions to add here? Do you have a secret trick to increase page loading speed? Suggestions are always welcome here!