W3 Total Cache helps you boost your website performance, as it provides page caching, CSS, and JavaScript minification while enabling content delivery network integration. In this tutorial, we demonstrate how to configure W3 Total Cache for your multilingual WordPress website.

Website performance is critical to a successful website. Page loading time affects both user loyalty and whether your website obtains a higher search engine ranking. Before activating and configuring W3 Total Cache on your website, we strongly recommend that you test your website performance using Pingdom Tools or Google’s PageSpeed Insight. After configuring W3 Total Cache, you can check your website’s performance again and compare it with the earlier results.

Here are some reasons why you should consider optimizing the performance of your website:

  1. Decreases page loading time. You can thus provide your visitors with a more convenient experience.
  2. Increases search engine ranking.
  3. Decreases the load on your hosting server.

Content

Getting started

If you are a developer, make sure that the W3 Total Cache plugin is activated.

Make sure that the WPML Multilingual CMS, WPML String Translation, WPML Translation Management, and WPML Media Translation plugins are activated. Follow the steps in the WPML Beginner’s Guide to verify that your setup is correct.

If you are a website owner working with a developer, please ask the developer to go over these settings for you.

Configuring W3 Total Cache on multilingual websites

You can activate W3 Total Cache on your website by navigating to Plugins -> Add New and search for W3 Total Cache. Click the Install button. Once W3 Total Cache is installed, click the Activate button.

Install and Activate W3 Total Cache

Page caching

Caching plays a major role in boosting the performance of your website, as it reduces both the bandwidth used to load the page and server load. This is accomplished by temporarily storing content from previous requests in order to serve subsequent requests. To enable page caching using W3 Total Cache, follow these steps:

  1. From your WordPress dashboard, navigate to Performance -> General Settings and find the Page Cache section. Enable the Page Cache option and, for the Page Cache Method, select Disk: Enhanced. Then click on the Save all settings button.
  2. Enabling page caching in the general settings

  3. To tweak the page caching behavior, navigate to Performance -> Page Cache. You can see that the page is divided into five main sections.
  4. a- In the General section, we recommend using those settings shown in the screenshot that follows. Once you have applied these settings, click on the Save all settings button.

    Configuring the general settings for page caching


    b- In the Aliases, Cache Preload, and Purge Policy: Page Cache and Advanced sections, we recommend retaining the default settings.

CSS and JavaScript (JS) minification

A WordPress website includes many CSS and JavaScript files that come from both the active theme and different plugins that you have running on your site. Rather than loading every CSS and JS file separately, minification combines and compresses the size of these files, resulting in faster page loading time.

To enable CSS and JS minification using W3 Total Cache, follow these steps:

  1. From your WordPress dashboard, navigate to Performance -> General Settings, and find the Minify section. Enable the Minify option, and then set the Minify mode to Auto and the Minify Cache Method to Memcached. Click on the Save all settings button.
  2. Enable minification from the general settings

  3. To tweak the minification settings, navigate to Performance -> Minify. You can see that the page is divided into five main sections.
  4. a- We recommend that you retain the default settings in the General section. Simply click on the Save all settings button.

    Minify – General settings section


    b- Similarly, in the HTML & XML section, we recommend that you retain the default settings.

    Minify – HTML & XML settings section


    c- In the JS section, enable the JS minify settings and choose the Combine only option. Click on the Save all settings button.

    Minify – JS section settings


    d- In the CSS section, check the following three options:

    • Enable
    • Preserved comment removal (not applied when combine only is active)
    • Line break removal (not applied when combine only is active)

    Click on the Save all settings button.

    Minify – CSS section settings

  5. We recommend that you retain the default settings in the Advanced
  6. You should now receive notification messages from W3 Total Cache to empty the cache. Click on the Empty the page cache and Empty the minify cache buttons.
  7. Empty the caches

Content Delivery Network

A content delivery network (CDN) is a network of servers distributed in different locations to deliver the content of your website to your users based on their location. Configuring and running CDN on your website reduces page loading time and thus enhances your website performance. Specifically, a CDN stores a cached version of your website’s static content in different geographical locations such that the nearest server for each user fulfills his or her requests, thereby reducing page loading time.

To configure the CDN using W3 Total Cache, follow these steps:

  1. Navigate to Performance -> CDN. In the General section, we recommend that you retain all default settings. Click on the Save all settings button.
  2. Configuring the general CDN settings

    If you see the notification message that follows, click on the unsuccessful transfer queue button and process the remaining queue.

    Click on the unsuccessful transfer queue button and process the remaining queue.

  3. In the configuration section, fill in your CDN details. Please choose the Enabled (always use ssl) option for SSL support. Click Save all settings.
  4. CDN – Configuration section settings

  5. We recommend that you retain the default settings in the Advanced section.

Getting help – WPML Translation support forum

Our forum has support staff who are ready to help you six days a week. They are trained in using WPML with W3 Total Cache. If you are working with a developer on your site, please use our Translation support forum to obtain help translating your site’s content.
If you are setting up the site and WPML yourself, please use our Technical support forum.