Plugin Directory

Changeset 3273051


Ignore:
Timestamp:
04/15/2025 07:27:35 AM (12 months ago)
Author:
ergonet
Message:

Add NGINX cache control

Location:
ergonet-varnish-cache
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ergonet-varnish-cache/tags/1.0.11/readme.txt

    r3273044 r3273051  
    1111Ergonet Cache for WordPress is a free plugin developed by Ergonet srl, an Italian hosting company, to drastically improve the performance of a WordPress website by using a server-side page caching system (NGINX Cache or Varnish Cache).
    1212
    13 BENEFITS
     13== BENEFITS ==
    1414
    1515Using a server-side caching system increases your WordPress site's performance by a minimum of 30% and up to 70%. Keep in mind that the actual improvement will also depend on your overall website optimization strategy.
    1616
    17 WHAT IS PAGE CACHE AND HOW DOES IT WORK?
     17== WHAT IS PAGE CACHE AND HOW DOES IT WORK? ==
    1818
    1919Page cache speeds up your website by storing the entire HTML of web pages directly on the web server, instantly serving them to visitors without needing to query the PHP server or the database again. Depending on your hosting plan, you can enable NGINX page cache (Equilibrio plan) or advanced RAM-based Varnish page cache (Progresso and Successo plans).
    2020
    21 COMPATIBILITY
     21== COMPATIBILITY==
    2222
    2323The Ergonet Cache plugin is compatible with all other website caching and optimization plugins, such as WP Rocket, W3 Total Cache, WO Optimize, etc.
     
    2525A fundamental requirement for the plugin to work is enabling the caching system from the WebPanel (Ergonet client area available at https://webpanel.ergonet.it) by the user who purchased the shared or dedicated cloud hosting service.
    2626
    27 HOW THE PLUGIN WORKS
     27== HOW THE PLUGIN WORKS==
     28
    2829Once the caching system is enabled from the Ergonet WebPanel and the Ergonet Cache plugin is installed and activated, it will work without any additional configuration.
    2930Cache resource updates
     
    3435On websites with a large amount of content, a full cache purge could also cause significant slowdowns due to WordPress needing to regenerate all requested pages or articles from scratch.
    3536
    36 WHAT IS NOT CACHED
     37== WHAT IS NOT CACHED ==
    3738To ensure the plugin works efficiently, some resources and specific HTTP calls are never cached. These include:
    3839
    39 Any page, article/resource visited by a logged-in user.
    40 Any page, article/resource where a no-cache header or similar is set.
    41 All requests made to the WordPress backend.
    42 All data submission requests (e.g., registration forms, contact forms, comments, etc.)
     40* Any page, article/resource visited by a logged-in user.
     41* Any page, article/resource where a no-cache header or similar is set.
     42* All requests made to the WordPress backend.
     43* All data submission requests (e.g., registration forms, contact forms, comments, etc.)
    4344
    44 HOW TO CHECK IF CACHING IS WORKING
     45== HOW TO CHECK IF CACHING IS WORKING ==
    4546The server-side cache system sets specific HTTP headers indicating whether the requested resource (link) is cached or not. To verify if your website is using the cache correctly, you must check for these HTTP headers.
    4647It's essential to ensure you are logged out of the WordPress site you're checking, as well as from any other WordPress site open in other browser tabs. The first step is therefore to log out from the WordPress admin area.
    4748Open the developer tools based on your browser:
    48 For Firefox:
    4949
    50 Menu → Browser Tools → Browser Console
     50For Firefox: Menu → Browser Tools → Browser Console
    5151
    52 For Chrome:
    53 
    54 View → Developer Options → Developer Tools
     52For Chrome: View → Developer Options → Developer Tools
    5553
    5654Once the developer tools are open:
     
    6260
    6361In the right-hand column, you'll see the response headers. The last header refers to the cache:
    64 VARNISH CACHE HEADER
     62
     63== VARNISH CACHE HEADER ==
    6564X-VC-Cache: HIT = the resource (page) is present in cache and was served from the Varnish cache system. This means the caching system is working properly.
    6665X-VC-Cache: MISS = the resource (page) is NOT in cache and was generated by the WordPress application. This means the cache system was instructed by headers or custom rules not to serve the cached content to the visitor.
    67 NGINX CACHE HEADER
     66
     67== NGINX CACHE HEADER ==
    6868x-cache-status: HIT or STALE = the resource (page) is present in cache and was served from the NGINX cache system. This means the caching system is working properly.
    6969x-cache-status: MISS = the resource (page) is NOT in cache and was generated by the WordPress application. This means the cache system was instructed by headers or custom rules not to serve the cached content to the visitor.
    70 ENABLING THE CACHING SYSTEM FROM THE WEBPANEL
     70
     71== ENABLING THE CACHING SYSTEM FROM THE WEBPANEL ==
     72
    7173The NGINX caching system is enabled by default and doesn’t require any specific settings.
    7274To enable the Varnish caching system, we recommend checking the dedicated guide: https://docs.ergonet.it/gestione-hosting/impostazioni-cache-server/cache-varnish
     75
    7376== Installation ==
    7477
  • ergonet-varnish-cache/trunk/readme.txt

    r3273044 r3273051  
    1111Ergonet Cache for WordPress is a free plugin developed by Ergonet srl, an Italian hosting company, to drastically improve the performance of a WordPress website by using a server-side page caching system (NGINX Cache or Varnish Cache).
    1212
    13 BENEFITS
     13== BENEFITS ==
    1414
    1515Using a server-side caching system increases your WordPress site's performance by a minimum of 30% and up to 70%. Keep in mind that the actual improvement will also depend on your overall website optimization strategy.
    1616
    17 WHAT IS PAGE CACHE AND HOW DOES IT WORK?
     17== WHAT IS PAGE CACHE AND HOW DOES IT WORK? ==
    1818
    1919Page cache speeds up your website by storing the entire HTML of web pages directly on the web server, instantly serving them to visitors without needing to query the PHP server or the database again. Depending on your hosting plan, you can enable NGINX page cache (Equilibrio plan) or advanced RAM-based Varnish page cache (Progresso and Successo plans).
    2020
    21 COMPATIBILITY
     21== COMPATIBILITY==
    2222
    2323The Ergonet Cache plugin is compatible with all other website caching and optimization plugins, such as WP Rocket, W3 Total Cache, WO Optimize, etc.
     
    2525A fundamental requirement for the plugin to work is enabling the caching system from the WebPanel (Ergonet client area available at https://webpanel.ergonet.it) by the user who purchased the shared or dedicated cloud hosting service.
    2626
    27 HOW THE PLUGIN WORKS
     27== HOW THE PLUGIN WORKS==
     28
    2829Once the caching system is enabled from the Ergonet WebPanel and the Ergonet Cache plugin is installed and activated, it will work without any additional configuration.
    2930Cache resource updates
     
    3435On websites with a large amount of content, a full cache purge could also cause significant slowdowns due to WordPress needing to regenerate all requested pages or articles from scratch.
    3536
    36 WHAT IS NOT CACHED
     37== WHAT IS NOT CACHED ==
    3738To ensure the plugin works efficiently, some resources and specific HTTP calls are never cached. These include:
    3839
    39 Any page, article/resource visited by a logged-in user.
    40 Any page, article/resource where a no-cache header or similar is set.
    41 All requests made to the WordPress backend.
    42 All data submission requests (e.g., registration forms, contact forms, comments, etc.)
     40* Any page, article/resource visited by a logged-in user.
     41* Any page, article/resource where a no-cache header or similar is set.
     42* All requests made to the WordPress backend.
     43* All data submission requests (e.g., registration forms, contact forms, comments, etc.)
    4344
    44 HOW TO CHECK IF CACHING IS WORKING
     45== HOW TO CHECK IF CACHING IS WORKING ==
    4546The server-side cache system sets specific HTTP headers indicating whether the requested resource (link) is cached or not. To verify if your website is using the cache correctly, you must check for these HTTP headers.
    4647It's essential to ensure you are logged out of the WordPress site you're checking, as well as from any other WordPress site open in other browser tabs. The first step is therefore to log out from the WordPress admin area.
    4748Open the developer tools based on your browser:
    48 For Firefox:
    4949
    50 Menu → Browser Tools → Browser Console
     50For Firefox: Menu → Browser Tools → Browser Console
    5151
    52 For Chrome:
    53 
    54 View → Developer Options → Developer Tools
     52For Chrome: View → Developer Options → Developer Tools
    5553
    5654Once the developer tools are open:
     
    6260
    6361In the right-hand column, you'll see the response headers. The last header refers to the cache:
    64 VARNISH CACHE HEADER
     62
     63== VARNISH CACHE HEADER ==
    6564X-VC-Cache: HIT = the resource (page) is present in cache and was served from the Varnish cache system. This means the caching system is working properly.
    6665X-VC-Cache: MISS = the resource (page) is NOT in cache and was generated by the WordPress application. This means the cache system was instructed by headers or custom rules not to serve the cached content to the visitor.
    67 NGINX CACHE HEADER
     66
     67== NGINX CACHE HEADER ==
    6868x-cache-status: HIT or STALE = the resource (page) is present in cache and was served from the NGINX cache system. This means the caching system is working properly.
    6969x-cache-status: MISS = the resource (page) is NOT in cache and was generated by the WordPress application. This means the cache system was instructed by headers or custom rules not to serve the cached content to the visitor.
    70 ENABLING THE CACHING SYSTEM FROM THE WEBPANEL
     70
     71== ENABLING THE CACHING SYSTEM FROM THE WEBPANEL ==
     72
    7173The NGINX caching system is enabled by default and doesn’t require any specific settings.
    7274To enable the Varnish caching system, we recommend checking the dedicated guide: https://docs.ergonet.it/gestione-hosting/impostazioni-cache-server/cache-varnish
     75
    7376== Installation ==
    7477
Note: See TracChangeset for help on using the changeset viewer.